📌  相关文章
📜  在手电筒中设置设备 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:01.403000             🧑  作者: Mango

代码示例1
. You can use the tensor.to(device) command to move a tensor to a device. The .to() command is also used to move a whole model to a device, like in the post you linked to. to set cuda as your device if possible