My code works fine on one thread, but as soon as I use multiple threads for inference, the c10 error from the title is thrown from time to time. I have no idea what it means and why my weights would not be contiguous. I am using torch::NoGradGuard during every evaluation.
The net I am using is a fairly standard convnet.