How does tf.keras.layers.Conv2D with padding='same' and strides > 1 behave?

前端 未结 2 2202
半阙折子戏
半阙折子戏 2021-02-06 05:34

I read What is the difference between 'SAME' and 'VALID' padding in tf.nn.max_pool of tensorflow? but this is not true to my experiment.

import t         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-06 06:35

    In tensorflow, for stride s and input size n, padding with same gives:

    ⌈n/s⌉

    or the ceiling of input size divided by stride.

提交回复
热议问题