Were you able to use the GPU before in libtorch and if so, did you change anything in your setup (e.g. a driver update etc.)?
Also, are you able to properly use the Python frontend or does it also return invalid values?
Which PyTorch version and device are you using?