API symbolsnn
Copy
tensorplay.nn.functional.pad
- tensorplay.nn.functional.pad(input, pad, mode='constant', value=0)[source]
Pads tensor.
padvalues are described starting from the last dimension and moving forward, exactly like torch.nn.functional.pad. Non-constant modes support the last 3 dimensions of a 3D/4D/5D input (torch’s restriction).
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
