torch.get_default_device¶ torch.get_default_device()[源代码][源代码]¶ 获取默认 torch.Tensor 分配所在的 device 返回类型 device