The line torch.cuda.get_device_properties(0)
gives me the output
_CudaDeviceProperties(name='NVIDIA A100-PCIE-40GB', major=8, minor=0, total_memory=40396MB, multi_processor_count=108)
,
but torch.cuda.get_device_properties(0).total_memory / 1000000
gives me the output
42358.472704
.
Why is there a difference in ‘total memory’ here?