📜  投射张量类型 pytorch - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:02.286000             🧑  作者: Mango

代码示例1
y = y.to(torch.long)
# torch.long, torch.int16, torch.int32, torch.float16, etc.