Please check the following things:

All the DLLs in LibTorch are copied to the directory of the executable.
You are not mixing the usage of different configurations.
Make sure the module is saved when it is on CPU, not GPU.