no_grad
, yes, but there was some extras setup code consuming GPU, I will try to break it down into functional pieces to understand it better, but the bottom line is the same.
Perfect. Thank you for that link! I am going to experiment with that code next.
Thank you for your help, @smth.