Solved by sudri in post #7 
              
              
                After trying again and again, I finally found the problem. Let me briefly describe the prerequisites and solutions. 
Prerequisites 

The model parameter type is Double
The input parameter is also of type Double
Therefore, the model saved by torch::save is also of Double type

Solutions 
After LibTor…