这里写自定义目录标题 vs qt调用pytorch时出现以下错误 错误 C2334 “{”的前面有意外标记;跳过明显的函数体 错误 C2059 语法错误:“” 解决方法:头文件引用改为: #undef slots #include <torch/script.h> #define slots Q_SLOTS