ReplicationPad1d
- class torch.nn.ReplicationPad1d(padding)
Pads the input tensor using replication 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 the output dimensions must remain positive.