[ torch 参数更多 ] torch.Tensor.int¶
torch.Tensor.int¶
torch.Tensor.int(memory_format=torch.preserve_format)
参数映射¶
PyTorch | PaddlePaddle | 备注 |
---|---|---|
memory_format | - | 表示内存格式,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 |
- | dtype | 数据类型,PyTorch 无此参数,Paddle 需设置为 int32 。 |