Shortcuts

torch.get_default_device

torch.get_default_device()[源代码]

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

Return type

设备

优云智算