megengine.functional.nn.pad

pad(src, pad_witdth, mode='constant', constant_value=0.0)[源代码]

Pad is python warpper for padding opr in megbrain, can padding in random one of the max 7 dimensions. Supported constant, edge(replicate) and reflect mode, constatnt is the default mode.

返回类型

Tensor