Closed juliusyang97 closed 3 years ago
@juliusyang97 Please provide your system configuration.
d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): error C3250: “i”: 不允许在“constexpr”函数体中进行声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): error C3249: “constexpr”函数的语句或子表达式非法 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): note: 请参见“++”的用法 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(104): error C3249: “constexpr”函数的语句或子表达式非法 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(105): error C3249: “constexpr”函数的语句或子表达式非法 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/string_view.h(59): warning C4814: “c10::basic_string_view<char>::operator =”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(123): note: 参见对正在编译的类 模板 实例化“c10::basic_string_view<char>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/string_view.h(159): warning C4814: “c10::basic_string_view<char>::remove_prefix”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/string_view.h(168): warning C4814: “c10::basic_string_view<char>::remove_suffix”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/string_view.h(174): warning C4814: “c10::basic_string_view<char>::swap”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<c10::ScalarType>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(169): note: 参见对正在编译的类 模板 实例化“c10::optional<c10::ScalarType>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “c10::ScalarType &c10::optional<c10::ScalarType>::contained_val(void) const &”: 重载函数与“const c10::ScalarType &c10::optional<c10::ScalarType>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::ScalarType>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<c10::ScalarType>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::ScalarType>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(278): error C2059: 语法错误:“return” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(278): error C2238: 意外的标记位于“;”之前 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(281): error C2144: 语法错误:“void”的前面应有“;” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(174): error C2440: “return”: 无法从“initializer list”转换为“c10::optional<c10::ScalarType>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(174): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(177): error C2440: “return”: 无法从“initializer list”转换为“c10::optional<c10::ScalarType>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(177): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(179): error C2440: “return”: 无法从“const c10::nullopt_t”转换为“c10::optional<c10::ScalarType>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(179): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(183): error C2451: “c10::optional<c10::ScalarType>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(183): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(184): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(191): error C2451: “c10::optional<c10::ScalarType>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(191): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(192): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(192): error C2440: “类型转换”: 无法从“c10::ScalarType”转换为“int” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(192): note: 该转换要求显式类型转换(static_cast、C 样式转换或函数样式转换) d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(192): error C2446: “==”: 没有从“c10::ScalarType”到“c10::optional<c10::ScalarType>”的转换 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/ScalarType.h(192): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/Scalar.h(66): warning C4800: “const int64_t”: 将值强制为布尔值“true”或“false”(性能警告) d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(66): warning C4800: “uint64_t”: 将值强制为布尔值“true”或“false”(性能警告) d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<c10::Layout>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(115): note: 参见对正在编译的类 模板 实例化“c10::optional<c10::Layout>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “c10::Layout &c10::optional<c10::Layout>::contained_val(void) const &”: 重载函数与“const c10::Layout &c10::optional<c10::Layout>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::Layout>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<c10::Layout>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::Layout>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(115): error C2664: “void c10::TensorOptions::set_layout(c10::optional<c10::Layout>) noexcept &”: 无法将参数 1 从“c10::Layout”转换为“c10::optional<c10::Layout>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(115): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<caffe2::TypeMeta>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(141): note: 参见对正在编译的类 模板 实例化“c10::optional<caffe2::TypeMeta>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “caffe2::TypeMeta &c10::optional<caffe2::TypeMeta>::contained_val(void) const &”: 重载函数与“const caffe2::TypeMeta &c10::optional<caffe2::TypeMeta>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<caffe2::TypeMeta>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<caffe2::TypeMeta>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<caffe2::TypeMeta>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(141): error C2664: “void c10::TensorOptions::set_dtype(c10::optional<c10::ScalarType>) noexcept &”: 无法将参数 1 从“caffe2::TypeMeta”转换为“c10::optional<caffe2::TypeMeta>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(141): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(146): error C2664: “void c10::TensorOptions::set_dtype(c10::optional<c10::ScalarType>) noexcept &”: 无法将参数 1 从“c10::ScalarType”转换为“c10::optional<caffe2::TypeMeta>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(146): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<c10::MemoryFormat>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(151): note: 参见对正在编译的类 模板 实例化“c10::optional<c10::MemoryFormat>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “c10::MemoryFormat &c10::optional<c10::MemoryFormat>::contained_val(void) const &”: 重载函数与“const c10::MemoryFormat &c10::optional<c10::MemoryFormat>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::MemoryFormat>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<c10::MemoryFormat>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::MemoryFormat>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(151): error C2664: “void c10::TensorOptions::set_memory_format(c10::optional<c10::MemoryFormat>) noexcept &”: 无法将参数 1 从“c10::MemoryFormat”转换为“c10::optional<c10::MemoryFormat>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(151): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<c10::Device>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(156): note: 参见对正在编译的类 模板 实例化“c10::optional<c10::Device>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “c10::Device &c10::optional<c10::Device>::contained_val(void) const &”: 重载函数与“const c10::Device &c10::optional<c10::Device>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::Device>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<c10::Device>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::Device>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<bool>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(209): note: 参见对正在编译的类 模板 实例化“c10::optional<bool>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “bool &c10::optional<bool>::contained_val(void) const &”: 重载函数与“const bool &c10::optional<bool>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<bool>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<bool>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<bool>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(242): error C2446: “:”: 没有从“const c10::nullopt_t”到“c10::optional<c10::Device>”的转换 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(242): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(263): error C2446: “:”: 没有从“const c10::nullopt_t”到“c10::optional<caffe2::TypeMeta>”的转换 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(263): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(279): error C2446: “:”: 没有从“const c10::nullopt_t”到“c10::optional<c10::Layout>”的转换 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(279): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(296): error C2446: “:”: 没有从“const c10::nullopt_t”到“c10::optional<bool>”的转换 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(296): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(322): error C2446: “:”: 没有从“const c10::nullopt_t”到“c10::optional<bool>”的转换 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(322): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(336): error C2446: “:”: 没有从“const c10::nullopt_t”到“c10::optional<c10::MemoryFormat>”的转换 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(336): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(450): error C2451: “c10::optional<c10::Device>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(450): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(451): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(460): error C2451: “c10::optional<caffe2::TypeMeta>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(460): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(461): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(470): error C2451: “c10::optional<c10::ScalarType>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(470): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(471): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(480): error C2451: “c10::optional<c10::Layout>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(480): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(481): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(481): error C2440: “=”: 无法从“c10::optional<c10::Layout>”转换为“c10::Layout” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(481): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(490): error C2451: “c10::optional<bool>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(490): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(491): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(491): error C2440: “=”: 无法从“c10::optional<bool>”转换为“bool” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(491): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(500): error C2451: “c10::optional<bool>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(500): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(501): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(501): error C2440: “=”: 无法从“c10::optional<bool>”转换为“bool” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(501): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(510): error C2451: “c10::optional<c10::MemoryFormat>”类型的条件表达式是非法的 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(510): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(511): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(511): error C2440: “=”: 无法从“c10::optional<c10::MemoryFormat>”转换为“c10::MemoryFormat” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(511): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(559): error C2664: “caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const”: 无法将参数 1 从“caffe2::TypeMeta”转换为“c10::optional<caffe2::TypeMeta>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(559): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(564): error C2664: “caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const”: 无法将参数 1 从“caffe2::TypeMeta”转换为“c10::optional<caffe2::TypeMeta>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(564): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(570): error C2664: “c10::Layout c10::TensorOptions::layout(void) noexcept const”: 无法将参数 1 从“c10::Layout”转换为“c10::optional<c10::Layout>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(570): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(588): error C2664: “bool c10::TensorOptions::requires_grad(void) noexcept const”: 无法将参数 1 从“bool”转换为“c10::optional<bool>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(588): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(594): error C2664: “c10::TensorOptions c10::TensorOptions::memory_format(c10::optional<c10::MemoryFormat>) noexcept const”: 无法将参数 1 从“c10::MemoryFormat”转换为“c10::optional<c10::MemoryFormat>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(594): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(473): error C2039: “has_value”: 不是“c10::optional<c10::Device>”的成员 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(156): note: 参见“c10::optional<c10::Device>”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(477): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(477): error C2039: “index”: 不是“c10::optional<c10::Device>”的成员 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(156): note: 参见“c10::optional<c10::Device>”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(481): error C2039: “has_value”: 不是“c10::optional<c10::Device>”的成员 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(156): note: 参见“c10::optional<c10::Device>”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(485): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(992): error C2039: “has_value”: 不是“c10::optional<c10::Device>”的成员 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(156): note: 参见“c10::optional<c10::Device>”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(994): error C2100: 非法的间接寻址 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(994): error C2039: “type”: 不是“c10::optional<c10::Device>”的成员 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(156): note: 参见“c10::optional<c10::Device>”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(1239): error C2679: 二进制“=”: 没有找到接受“c10::Device”类型的右操作数的运算符(或没有可接受的转换) d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(279): note: 可能是“c10::optional<c10::Device> &c10::optional<c10::Device>::operator =(c10::optional<c10::Device> &&)” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(279): note: 或 “c10::optional<c10::Device> &c10::optional<c10::Device>::operator =(const c10::optional<c10::Device> &)” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(1239): note: 尝试匹配参数列表“(c10::optional<c10::Device>, c10::Device)”时 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(1250): error C2679: 二进制“=”: 没有找到接受“c10::Device”类型的右操作数的运算符(或没有可接受的转换) d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(279): note: 可能是“c10::optional<c10::Device> &c10::optional<c10::Device>::operator =(c10::optional<c10::Device> &&)” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(279): note: 或 “c10::optional<c10::Device> &c10::optional<c10::Device>::operator =(const c10::optional<c10::Device> &)” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(1250): note: 尝试匹配参数列表“(c10::optional<c10::Device>, c10::Device)”时 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(1310): error C2679: 二进制“=”: 没有找到接受“c10::Device”类型的右操作数的运算符(或没有可接受的转换) d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(279): note: 可能是“c10::optional<c10::Device> &c10::optional<c10::Device>::operator =(c10::optional<c10::Device> &&)” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(279): note: 或 “c10::optional<c10::Device> &c10::optional<c10::Device>::operator =(const c10::optional<c10::Device> &)” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(1310): note: 尝试匹配参数列表“(c10::optional<c10::Device>, c10::Device)”时 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(1355): error C2679: 二进制“=”: 没有找到接受“c10::Device”类型的右操作数的运算符(或没有可接受的转换) d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(279): note: 可能是“c10::optional<c10::Device> &c10::optional<c10::Device>::operator =(c10::optional<c10::Device> &&)” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(279): note: 或 “c10::optional<c10::Device> &c10::optional<c10::Device>::operator =(const c10::optional<c10::Device> &)” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorImpl.h(1355): note: 尝试匹配参数列表“(c10::optional<c10::Device>, c10::Device)”时 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(95): error C2664: “caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const”: 无法将参数 1 从“caffe2::TypeMeta”转换为“c10::optional<caffe2::TypeMeta>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(95): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(96): error C2228: “.device”的左边必须有类/结构/联合 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(97): error C2228: “.layout”的左边必须有类/结构/联合 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(103): error C2039: “has_value”: 不是“c10::optional<c10::Device>”的成员 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(156): note: 参见“c10::optional<c10::Device>”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(106): error C2039: “value”: 不是“c10::optional<c10::Device>”的成员 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/TensorOptions.h(156): note: 参见“c10::optional<c10::Device>”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(106): error C2512: “c10::Device”: 没有合适的默认构造函数可用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/core/Device.h(30): note: 参见“c10::Device”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(1206): warning C4522: “at::Tensor”: 指定了多个赋值运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(550): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<bool>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(550): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<int64_t>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(587): note: 参见对正在编译的类 模板 实例化“c10::optional<int64_t>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “int64_t &c10::optional<int64_t>::contained_val(void) const &”: 重载函数与“const int64_t &c10::optional<int64_t>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<int64_t>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<int64_t>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<int64_t>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(587): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<int64_t>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(587): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(588): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<int64_t>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(588): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(595): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<int64_t>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(595): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(596): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<int64_t>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(596): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<at::Generator>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(603): note: 参见对正在编译的类 模板 实例化“c10::optional<at::Generator>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “at::Generator &c10::optional<at::Generator>::contained_val(void) const &”: 重载函数与“const at::Generator &c10::optional<at::Generator>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<at::Generator>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<at::Generator>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<at::Generator>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(603): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<at::Generator>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(603): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(604): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<at::Generator>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(604): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(605): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<at::Generator>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(605): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(606): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<at::Generator>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(606): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(276): warning C4814: “c10::optional<c10::Scalar>::contained_val”: 在 C++14 中,"constexpr" 将不表示“常量”;请考虑显式指定“常量” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(622): note: 参见对正在编译的类 模板 实例化“c10::optional<c10::Scalar>”的引用 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2556: “c10::Scalar &c10::optional<c10::Scalar>::contained_val(void) const &”: 重载函数与“const c10::Scalar &c10::optional<c10::Scalar>::contained_val(void) const &”只是在返回类型上不同 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::Scalar>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(277): error C2373: “c10::optional<c10::Scalar>::contained_val”: 重定义;不同的类型修饰符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\c10/util/Optional.h(271): note: 参见“c10::optional<c10::Scalar>::contained_val”的声明 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(622): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<c10::Scalar>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(622): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(623): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<c10::Scalar>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(623): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(638): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<c10::ScalarType>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(638): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(639): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<c10::ScalarType>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(639): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(640): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<c10::ScalarType>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(640): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(641): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<c10::ScalarType>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(641): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符 d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(656): error C2440: “默认参数”: 无法从“const c10::nullopt_t”转换为“c10::optional<c10::MemoryFormat>” d:\app\anaconda\anaconda3\lib\site-packages\torch\include\ATen/core/TensorBody.h(656): fatal error C1003: 错误计数超过 100;正在停止编译 error: command 'D:\\APP\\vs2015.pro_chs\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2 ERROR: Command errored out with exit status 1: 'd:\app\anaconda\anaconda3\python3.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'D:\\G\\GitCode\\Face\\Python\\vedadet\\setup.py'"'"'; __file__='"'"'D:\\G\\GitCode\\Face\\Python\\vedadet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. Exception information: Traceback (most recent call last): File "C:\Users\dell\AppData\Roaming\Python\Python37\site-packages\pip\_internal\cli\base_command.py", line 224, in _main status = self.run(options, args) File "C:\Users\dell\AppData\Roaming\Python\Python37\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper return func(self, options, args) File "C:\Users\dell\AppData\Roaming\Python\Python37\site-packages\pip\_internal\commands\install.py", line 403, in run pycompile=options.compile, File "C:\Users\dell\AppData\Roaming\Python\Python37\site-packages\pip\_internal\req\__init__.py", line 90, in install_given_reqs pycompile=pycompile, File "C:\Users\dell\AppData\Roaming\Python\Python37\site-packages\pip\_internal\req\req_install.py", line 802, in install unpacked_source_directory=self.unpacked_source_directory, File "C:\Users\dell\AppData\Roaming\Python\Python37\site-packages\pip\_internal\operations\install\editable_legacy.py", line 51, in install_editable cwd=unpacked_source_directory, File "C:\Users\dell\AppData\Roaming\Python\Python37\site-packages\pip\_internal\utils\subprocess.py", line 240, in call_subprocess raise InstallationError(exc_msg) pip._internal.exceptions.InstallationError: Command errored out with exit status 1: 'd:\app\anaconda\anaconda3\python3.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'D:\\G\\GitCode\\Face\\Python\\vedadet\\setup.py'"'"'; __file__='"'"'D:\\G\\GitCode\\Face\\Python\\vedadet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. Removed build tracker: 'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-req-tracker-2gvzfpz6'
system configuration:Windows10, Python3.7.3, PyTorch 1.6.0
was it solved?
Requirement already satisfied: cython in /home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages (from -r requirements/build.txt (line 1)) (0.29.21) Requirement already satisfied: numpy in /home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages (from -r requirements/build.txt (line 2)) (1.19.4) (vedadet-2) yjq@a504:~/Research_traning/vedadet$ pip install -v -e . Using pip 20.3.3 from /home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/pip (python 3.7) Non-user install because site-packages writeable Created temporary directory: /tmp/pip-ephem-wheel-cache-3rh0g7c3 Created temporary directory: /tmp/pip-req-tracker-zn8_qdff Initialized build tracking at /tmp/pip-req-tracker-zn8_qdff Created build tracker: /tmp/pip-req-tracker-zn8_qdff Entered build tracker: /tmp/pip-req-tracker-zn8_qdff Created temporary directory: /tmp/pip-install-ovmbn9c9 Obtaining file:///home/yjq/Research_traning/vedadet Added file:///home/yjq/Research_traning/vedadet to build tracker '/tmp/pip-req-tracker-zn8_qdff' Running setup.py (path:/home/yjq/Research_traning/vedadet/setup.py) egg_info for package from file:///home/yjq/Research_traning/vedadet Created temporary directory: /tmp/pip-pip-egg-info-6o1hrl7f Running command python setup.py egg_info running egg_info creating /tmp/pip-pip-egg-info-6o1hrl7f/vedadet.egg-info writing /tmp/pip-pip-egg-info-6o1hrl7f/vedadet.egg-info/PKG-INFO writing dependency_links to /tmp/pip-pip-egg-info-6o1hrl7f/vedadet.egg-info/dependency_links.txt writing top-level names to /tmp/pip-pip-egg-info-6o1hrl7f/vedadet.egg-info/top_level.txt writing manifest file '/tmp/pip-pip-egg-info-6o1hrl7f/vedadet.egg-info/SOURCES.txt' reading manifest file '/tmp/pip-pip-egg-info-6o1hrl7f/vedadet.egg-info/SOURCES.txt' writing manifest file '/tmp/pip-pip-egg-info-6o1hrl7f/vedadet.egg-info/SOURCES.txt' Source in /home/yjq/Research_traning/vedadet has version 0.1.0, which satisfies requirement vedadet==0.1.0 from file:///home/yjq/Research_traning/vedadet Removed vedadet==0.1.0 from file:///home/yjq/Research_traning/vedadet from build tracker '/tmp/pip-req-tracker-zn8_qdff' Created temporary directory: /tmp/pip-unpack-h44ry_c1 Installing collected packages: vedadet Running setup.py develop for vedadet Running command /home/yjq/miniconda3/envs/vedadet-2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/yjq/Research_traning/vedadet/setup.py'"'"'; __file__='"'"'/home/yjq/Research_traning/vedadet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps running develop running egg_info writing vedadet.egg-info/PKG-INFO writing dependency_links to vedadet.egg-info/dependency_links.txt writing top-level names to vedadet.egg-info/top_level.txt reading manifest file 'vedadet.egg-info/SOURCES.txt' writing manifest file 'vedadet.egg-info/SOURCES.txt' running build_ext building 'vedadet.ops.nms.nms_ext' extension gcc -pthread -B /home/yjq/miniconda3/envs/vedadet-2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/torch/include -I/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/torch/include/TH -I/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/yjq/miniconda3/envs/vedadet-2/include/python3.7m -c vedadet/ops/nms/src/nms_ext.cpp -o build/temp.linux-x86_64-3.7/vedadet/ops/nms/src/nms_ext.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -B /home/yjq/miniconda3/envs/vedadet-2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/torch/include -I/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/torch/include/TH -I/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/yjq/miniconda3/envs/vedadet-2/include/python3.7m -c vedadet/ops/nms/src/cpu/nms_cpu.cpp -o build/temp.linux-x86_64-3.7/vedadet/ops/nms/src/cpu/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ vedadet/ops/nms/src/cpu/nms_cpu.cpp: In function ‘at::Tensor nms_cpu_kernel(const at::Tensor&, float)’: vedadet/ops/nms/src/cpu/nms_cpu.cpp:29:50: error: expected primary-expression before ‘>’ token auto suppressed = suppressed_t.data_ptr<uint8_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:29:52: error: expected primary-expression before ‘)’ token auto suppressed = suppressed_t.data_ptr<uint8_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:30:38: error: expected primary-expression before ‘>’ token auto keep = keep_t.data_ptr<int64_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:30:40: error: expected primary-expression before ‘)’ token auto keep = keep_t.data_ptr<int64_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:31:40: error: expected primary-expression before ‘>’ token auto order = order_t.data_ptr<int64_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:31:42: error: expected primary-expression before ‘)’ token auto order = order_t.data_ptr<int64_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:32:35: error: expected primary-expression before ‘>’ token auto x1 = x1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:32:37: error: expected primary-expression before ‘)’ token auto x1 = x1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:33:35: error: expected primary-expression before ‘>’ token auto y1 = y1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:33:37: error: expected primary-expression before ‘)’ token auto y1 = y1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:34:35: error: expected primary-expression before ‘>’ token auto x2 = x2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:34:37: error: expected primary-expression before ‘)’ token auto x2 = x2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:35:35: error: expected primary-expression before ‘>’ token auto y2 = y2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:35:37: error: expected primary-expression before ‘)’ token auto y2 = y2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:36:41: error: expected primary-expression before ‘>’ token auto areas = areas_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:36:43: error: expected primary-expression before ‘)’ token auto areas = areas_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp: In function ‘at::Tensor soft_nms_cpu_kernel(const at::Tensor&, float, unsigned char, float, float)’: vedadet/ops/nms/src/cpu/nms_cpu.cpp:95:35: error: expected primary-expression before ‘>’ token auto x1 = x1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:95:37: error: expected primary-expression before ‘)’ token auto x1 = x1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:96:35: error: expected primary-expression before ‘>’ token auto y1 = y1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:96:37: error: expected primary-expression before ‘)’ token auto y1 = y1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:97:35: error: expected primary-expression before ‘>’ token auto x2 = x2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:97:37: error: expected primary-expression before ‘)’ token auto x2 = x2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:98:35: error: expected primary-expression before ‘>’ token auto y2 = y2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:98:37: error: expected primary-expression before ‘)’ token auto y2 = y2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:99:43: error: expected primary-expression before ‘>’ token auto scores = scores_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:99:45: error: expected primary-expression before ‘)’ token auto scores = scores_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:100:41: error: expected primary-expression before ‘>’ token auto areas = areas_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:100:43: error: expected primary-expression before ‘)’ token auto areas = areas_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:104:39: error: expected primary-expression before ‘>’ token auto inds = inds_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:104:41: error: expected primary-expression before ‘)’ token auto inds = inds_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp: In function ‘std::vector<std::vector<int> > nms_match_cpu_kernel(const at::Tensor&, float)’: vedadet/ops/nms/src/cpu/nms_cpu.cpp:239:50: error: expected primary-expression before ‘>’ token auto suppressed = suppressed_t.data_ptr<uint8_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:239:52: error: expected primary-expression before ‘)’ token auto suppressed = suppressed_t.data_ptr<uint8_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:240:40: error: expected primary-expression before ‘>’ token auto order = order_t.data_ptr<int64_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:240:42: error: expected primary-expression before ‘)’ token auto order = order_t.data_ptr<int64_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:241:35: error: expected primary-expression before ‘>’ token auto x1 = x1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:241:37: error: expected primary-expression before ‘)’ token auto x1 = x1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:242:35: error: expected primary-expression before ‘>’ token auto y1 = y1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:242:37: error: expected primary-expression before ‘)’ token auto y1 = y1_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:243:35: error: expected primary-expression before ‘>’ token auto x2 = x2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:243:37: error: expected primary-expression before ‘)’ token auto x2 = x2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:244:35: error: expected primary-expression before ‘>’ token auto y2 = y2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:244:37: error: expected primary-expression before ‘)’ token auto y2 = y2_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:245:41: error: expected primary-expression before ‘>’ token auto areas = areas_t.data_ptr<scalar_t>(); ^ vedadet/ops/nms/src/cpu/nms_cpu.cpp:245:43: error: expected primary-expression before ‘)’ token auto areas = areas_t.data_ptr<scalar_t>(); ^ error: command 'gcc' failed with exit status 1 ERROR: Command errored out with exit status 1: /home/yjq/miniconda3/envs/vedadet-2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/yjq/Research_traning/vedadet/setup.py'"'"'; __file__='"'"'/home/yjq/Research_traning/vedadet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. Exception information: Traceback (most recent call last): File "/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 224, in _main status = self.run(options, args) File "/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper return func(self, options, args) File "/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 403, in run pycompile=options.compile, File "/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 90, in install_given_reqs pycompile=pycompile, File "/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 802, in install unpacked_source_directory=self.unpacked_source_directory, File "/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/pip/_internal/operations/install/editable_legacy.py", line 51, in install_editable cwd=unpacked_source_directory, File "/home/yjq/miniconda3/envs/vedadet-2/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 240, in call_subprocess raise InstallationError(exc_msg) pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /home/yjq/miniconda3/envs/vedadet-2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/yjq/Research_traning/vedadet/setup.py'"'"'; __file__='"'"'/home/yjq/Research_traning/vedadet/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output. Removed build tracker: '/tmp/pip-req-tracker-zn8_qdff'