torch.get_default_device¶ torch.get_default_device()[原始碼][原始碼]¶ 獲取預設 torch.Tensor 分配所在的 device 返回型別 device