The tensor from pytorch c++ can print() but can't clone()?

a tensor created in pytorch C++ and return to python pytorch. It use clone() to display error: segmentation fault (core dumped)

Hi,

This is most likely because there is some problem the way the Tensor was returned. Could you provide a small code sample that reproduce the issue?