Closed jarheadjoe closed 5 months ago
import os os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu_index)
torch.cuda.set_device(gpu_index)
import os os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu_index)
torch.cuda.set_device(gpu_index)