Skip to Content

Convolutional Neural Network CNN: What is the Resulting Volume Dimension After Padding in a CNN Input Volume?

Learn how to calculate the resulting volume dimensions after padding in a Convolutional Neural Network (CNN) input volume. Perfect for CNN certification exams and interviews.

Question

You have an input volume that is 15x15x8, and pad it using “pad=2.” What is the dimension of the resulting volume (after padding)?

A. 19x19x12
B. 17x17x10
C. 19x19x8
D. 17x17x8

Answer

C. 19x19x8

Explanation

To calculate the dimensions of the resulting volume after applying padding in a Convolutional Neural Network (CNN), you can use the following formula:

New Dimension=Original Dimension+2×Padding

Given

  • Input volume: 15×15×8
  • Padding: pad=2

Step-by-Step Calculation

Height and Width:

The height and width of the input volume are each 15. After applying padding of 2 on all sides, the new height and width become: 15+2×2=19

Depth:

The depth of the input volume (8) remains unchanged because padding is applied only to the spatial dimensions (height and width).

Resulting Volume

The resulting volume dimensions are: 19×19×8

This calculation aligns with the execution results provided in Python code, confirming that the final dimensions are accurate.

Convolutional Neural Network CNN certification exam assessment practice question and answer (Q&A) dump including multiple choice questions (MCQ) and objective type questions, with detail explanation and reference available free, helpful to pass the Convolutional Neural Network CNN exam and earn Convolutional Neural Network CNN certification.