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