Jump to content

Convolutional neural network: Difference between revisions

Line 109: Line 109:
* Replication padding
* Replication padding


With convolution layers in tensorflow and other libraries you often see these two types of padding:
With convolution layers in libraries you often see these two types of padding which can be added to the conv layer directly:
* <code>VALID</code> - Do not do any padding
* <code>VALID</code> - Do not do any padding
* <code>SAME</code> - Apply zero padding such that the output will have resolution \(\lfloor x/stride \rfloor\).
* <code>SAME</code> - Apply zero padding such that the output will have resolution \(\lfloor x/stride \rfloor\).