You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I tried to run test.sh of Dimensionality_Reduction/AE2d on my PC which doesn't have GPU, but failed with the below error message.
terminate called after throwing an instance of 'c10::Error'
what(): No CUDA GPUs are available
It's because test() in AE2d/test.cpp calls torch::cuda::synchronize() regardless of device type. I think it should be called only on GPU environment. For example:
if (!device.is_cpu()) torch::cuda::synchronize();
The text was updated successfully, but these errors were encountered:
Hello. I tried to run
test.sh
ofDimensionality_Reduction/AE2d
on my PC which doesn't have GPU, but failed with the below error message.It's because
test()
inAE2d/test.cpp
callstorch::cuda::synchronize()
regardless of device type. I think it should be called only on GPU environment. For example:if (!device.is_cpu()) torch::cuda::synchronize();
The text was updated successfully, but these errors were encountered: