Thanks for your response Tom, Finally I make it work on Jetson Nano, by just using python3 setup.py install . The problem was I built libtorch without cxx 11 abi activated. I reinstall it with cxx 11 abi = 1, run /usr/bin/jetson_clock and I used 1G swap file. works like charm, no crash, it took about 12 hours to complete