想跑通第1个参考资料上讲的例子,一定要注意gcc和gperftools的版本.因为LibTorch用了c++17的over-aligned新特性. centos默认的gcc是4.8.5不支持这个新特性,直接用会一直报Attempt to free invalid pointer 0xxxxxx Aborted
LibTorch 1.1
gperftools源代码
ARTS-S c++调用pytorch接口
原文:https://www.cnblogs.com/zhouyang209117/p/11161139.html