Skip to content

zero_padding2

2D zero padding.

This layer pads zeros to an input.


Parameter

  • pads : Integer, 2 integers, or 4 integers, padding values.
    If integer, the height and width are symmmetrically padded with the same value.
    If 2 integers, the height and weight are symetrically padded with [pad_h, pad_w].
    If 4 integers, the height and weight are padded with [pad_top, pad_left, pad_bottom, pad_right].
    The default is 0.
  • padding_color : Floats, padding color. The default is [0.0, 0.0, 0.0].