评价此页

torch.get_default_device#

torch.get_default_device()[源代码]#

获取默认将在 device 上分配的 torch.Tensor

返回类型

device