Solved by glaringlee in post #5 
              
              
                @Carol_Ye_Liu 
Can you check the pytorch version you installed? It seems to me that when you test pytorch 1.6 + libtorch 1.6, the actual pytorch you were using might not be 1.6. 
You can print out the pytorch version by 
import torch
print (torch.__version__)

I tried on my machine with latest pytor…