conda create -n pytorch-env python=3.10 conda activate pytorch-env pip install torch torchvision torchaudio On the other hand, I also compiled for different purpose libTorch 2.3.1 (without CUDA ...
# Check how many GPUs are available print(f"GPU count: {torch.cuda.device_count()}") # Get name of GPU print(f"GPU name: {torch.cuda.get_device_name(0)}") # Run a ...