I follow the Extending TorchScript tutorial 3 and I manage to build the warp_perspective operator.  I try following code:



import torch
torch.ops.load_library("/path/to/libwarp_perspective.so")
print(torch.ops.my_ops.warp_perspective)



but I get the segmentation fault error. I have installed pytorch 1.2.0 for python 3.6 and cuda 10.0. I have also downloaded the latest nightly version of libtorch. Any idea where the problem is coming from?