[ torch 参数更多 ]torch.clip¶
torch.clip¶
torch.clip(input,
min=None,
max=None,
*,
out=None)
参数映射¶
| PyTorch | PaddlePaddle | 备注 | | ————- | ———— | —————————————————— | | input| | x | 表示输入的 Tensor,仅参数名不一致。 | | min | min | 表示裁剪的最小值。 | | max | max | 表示裁剪的最大值。 | | out | - | 表示输出的 Tensor,Paddle 无此参数,需要转写。 |