Torch not compiled with CUDA enabled---CUDA

Friends i have an imac with a built-in GPU card Radeon Pro Vega 56, but I get this error:
AssertionError: Torch not compiled with CUDA enabled.
I have installed pytorch = 1.5.0, cudatoolkit = 9.0 and torchvision = 0.4, please support me

Hi @jasg, did you Build from Source? You probably need to build from the source since PyTorch is installed without CUDA support by default on MacOS. This is due to CUDA being a Nvidia proprietary technology.