The tensor to pad.
An array of length R (the rank of the tensor), where
each element is a length-2 tuple of ints [padBefore, padAfter],
specifying how much to pad along each dimension of the tensor.
OptionalconstantValue: numberThe pad value to use. Defaults to 0.
Pads a
tf.Tensorwith a given value and paddings.This operation implements
CONSTANTmode. ForREFLECTandSYMMETRIC, refer totf.mirrorPad.Also available are stricter rank-specific methods with the same signature as this method that assert that
paddingsis of given length.tf.pad1dtf.pad2dtf.pad3dtf.pad4d