I got the following error when running Inception_v3 multithreading after 4 warm-ups in libtorch(c++) environment.

terminate called after throwing an instance of ‘std::runtime_error’
what():  The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
RuntimeError: CUDA driver error: invalid device context

What do I do?