torch.Tensor.fix_()
paddle.Tensor.trunc_(name=None)
两者功能一致,但调用方式不一致,具体如下:
# PyTorch 写法 result = input.fix_() # Paddle 写法 result = input.trunc_()