ReflectionPad1d
- class torch.nn.ReflectionPad1d(padding)
Pads the input tensor using the reflection of the input boundary.
For N-dimensional padding, use
torch.nn.functional.pad().- Parameters:
() – the size of the padding. If it is , uses the same padding in all boundaries. If a 2-, uses (, ) Note that padding size should be less than the corresponding input dimension.