Closed wagavulin closed 2 years ago
Thank you for reporting the bug and solution. I changed the source code and confirmed that it works normally.
I reflected it in master
branch, and the modified code was archived as support/v1.10.1
.
https://github.com/koba-jon/pytorch_cpp/tree/support/v1.10.1
Thank you so much!
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: