ptrblck:

This should print, if a parameter is not on the GPU.


Didn’t print parameters, so  those are probably on GPU card.
Ah, simply
print(model.parameters())

also not worked. So, before the run the model, elaboration of function “q_sel” made the error, indeed.