Body: <p>Firstly as an example here is the architecture of YOLOv2
  <a href="https://i.sstatic.net/aKOAR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aKOAR.png" alt="enter image description here" /></a></p>
  <p>I am trying to understand the depth of an output of a convolutional layer. For example, the first convolutional layer has the shape 3x3x32. So there are 32 filters with shape 3x3, but each filter has 3 layers and these 3 layers convolve over 3 layers of the input. At the end, values of the 3 layers are summed up and to generate 1 layer. For 32 filters, we get an output with 32 layers.</p>
  <p>If we look at the next layer, 64 filters with size 3x3 and each filter should have 32 layers. Because input has 32 layers. Is this inference true? If it is not, how does it work?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-28T15:43:34.753Z
Comments.Text: I think that this question is a duplicate of [this](https://ai.stackexchange.com/q/17783/2444). Please, let me know whether that is the case or not. In any case, to answer your question: yes, your reasoning is correct, but note that this only applies to 2d convolutions (the usual convolution operation in CNNs). In the case of 3d convolutions, as I write in my answer in the linked post, the depth of the kernels could be different than the depth of the inputs.
Comments.UserDisplayName: nbro
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-28T15:49:03.887Z
Comments.Text: @nbro basically yes, they are same. Sorry, I did not see that one before asking mine.
Comments.UserDisplayName: Reactionic
Tags: <convolutional-neural-networks><convolution><yolo><filters><convolutional-layers>
Title: Do filters have as many layers as the depth of the input in CNNs?
UserDisplayName: Reactionic
ThreadText: # Do filters have as many layers as the depth of the input in CNNs?
  
  (Asked by: username_0 on 2020-12-28)
  
  Firstly as an example here is the architecture of YOLOv2
  [![enter image description here](https://i.sstatic.net/aKOAR.png)](https://i.sstatic.net/aKOAR.png)
  
  I am trying to understand the depth of an output of a convolutional layer. For example, the first convolutional layer has the shape 3x3x32. So there are 32 filters with shape 3x3, but each filter has 3 layers and these 3 layers convolve over 3 layers of the input. At the end, values of the 3 layers are summed up and to generate 1 layer. For 32 filters, we get an output with 32 layers.
  
  If we look at the next layer, 64 filters with size 3x3 and each filter should have 32 layers. Because input has 32 layers. Is this inference true? If it is not, how does it work?
  
  **Tags:** convolutional-neural-networks, convolution, yolo, filters, convolutional-layers
  > **Comments:**
  > **username_1**: I think that this question is a duplicate of [this](https://ai.stackexchange.com/q/17783/2444). Please, let me know whether that is the case or not. In any case, to answer your question: yes, your reasoning is correct, but note that this only applies to 2d convolutions (the usual convolution operation in CNNs). In the case of 3d convolutions, as I write in my answer in the linked post, the depth of the kernels could be different than the depth of the inputs.  
  > **username_0**: @nbro basically yes, they are same. Sorry, I did not see that one before asking mine.  
  
  ---
  
  ## 0 answers
  
  