摘要: 编译有些python库时可能会报这个错。 解决方法是: 将setup.py中的“cmdclass={'build_ext': BuildExtension}”改为“cmdclass={'build_ext': BuildExtension.with_options(use_ninja=False)} 阅读全文
posted @ 2024-02-07 10:37 Dsp Tian 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 一般出现这种问题都是cuda、pytorch或vs版本没配对上。 这里出现问题的文件为torch中的cast.h。 我看网上很多给的解决方法是修改下面代码: template <template <typename...> class Tuple, typename... Ts> class tup 阅读全文
posted @ 2024-02-07 10:24 Dsp Tian 阅读(81) 评论(0) 推荐(0) 编辑