Skip to main content

Module pad

Module pad 

Source
Expand description

Padding layers.

Structsยง

CircularPad1d
1-D circular padding: pads by wrapping around (periodic boundary).
CircularPad2d
2-D circular padding: pads by wrapping around (periodic boundary).
CircularPad3d
3-D circular padding: pads by wrapping around (periodic boundary).
ConstantPad1d
1-D constant padding: pads with a fixed value on each side.
ConstantPad2d
2-D constant padding: pads with a fixed value on each side.
ConstantPad3d
3-D constant padding: pads with a fixed value on each side.
ReflectionPad1d
1-D reflection padding: pads by reflecting the input at the boundary.
ReflectionPad2d
2-D reflection padding: pads by reflecting the input at the boundary.
ReflectionPad3d
3-D reflection padding: pads by reflecting the input at the boundary.
ReplicationPad1d
1-D replication padding: pads by replicating edge values.
ReplicationPad2d
2-D replication padding: pads by replicating edge values.
ReplicationPad3d
3-D replication padding: pads by replicating edge values.