The operation that should be padded.
The amount of padding that should be prepended for each dimension.
The amount of padding that should be appended for each dimension.
import dopt.core : evaluate; auto p1 = int32([1, 1], [3]).pad([2, 1], [3, 3]); assert(p1.evaluate().get!int == [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]);
Pads the result of an operation with zeros in each dimension.