torch.Tensor.fmod(other)
paddle.Tensor.mod(y, name=None)
其中,PyTorch 与 Paddle 的 other 参数所支持类型不一致,具体如下:
other
# PyTorch 写法 result = x.fmod(other=2.) # Paddle 写法 result = x.mod(y=paddle.to_tensor(2.))