CAVI / scripts /test_cuda_device.py
DesonDai's picture
Upload CAVI-ReID code, results, and final CLIP weights
376ab70 verified
Raw
History Blame Contribute Delete
173 Bytes
import torch
print("available", torch.cuda.is_available())
tensor = torch.zeros(1, device="cuda")
print("allocated", tensor)
print("device", torch.cuda.get_device_name(0))