| gradOutput |
Input |
Forward propagation of replication_pad1d/replication_pad2d. The shape supports 2 to 4 dimensions, and the dimensions must be consistent with self and gradInput. 2/3 dimensions indicate 1d, and 3/4 dimensions indicate 2d. |
FLOAT16, FLOAT32, DOUBLE, COMPLEX64, COMPLEX128 |
ND |
| self |
Input |
The shape supports 2 to 4 dimensions, and the dimensions must be consistent with self and gradInput. The shape is the same as that of gradInput. |
FLOAT16, FLOAT32, DOUBLE, COMPLEX64, COMPLEX128 |
ND |
| padding |
Input |
padding describes the size of outward padding, and its length is 2 or 4.When the length is 2, it indicates the values to be padded on the left and right for 1d, and the first two values of padding must be smaller than the value of the last dimension of self.When the length is 4, it indicates the values to be padded on the left, right, top, and bottom for 2d. The first two values of padding must be smaller than the value of the last dimension of self, and the last two values must be smaller than the value of the second-to-last dimension. |
INT64 |
|
| gradInput |
Output |
The data type is the same as that of self. |
FLOAT16, FLOAT32, DOUBLE, COMPLEX64, COMPLEX128 |
ND |