atc模型转换报错:找不到头文件#include <type_traits>
收藏回复举报
atc模型转换报错:找不到头文件#include <type_traits>
t('forum.solved') 已解决
发表于2023-09-21 22:53:49
0 查看

运行环境:PC Ubuntu22.04 X86-64

CANN版本:7.0.RC1.alpha003

Python环境:3.7.5

报错信息显示:找不到#include &lt;type_traits&gt;头文件,但是在toolchain下面是可以找到这个文件的,求大神解答

=====================================================

报错信息如下:

atc --model=./model/export_aemodel.onnx --framework=5 --output=export_model --input_format=NCHW --input_shape=&quot;input:16,784&quot; --log=error --soc_version=Ascend310B1

ATC start working now, please wait for a moment.

run stack spill compile error:  In file included from &lt;built-in&gt;:1:

In file included from /home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_runtime_wrapper.h:39:

/home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_vector_types.h:19:2: warning: The vector size is manually reset. [-W#warnings]

#warning The vector size is manually reset.

 ^

In file included from &lt;built-in&gt;:1:

In file included from /home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_runtime_wrapper.h:68:

/home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_vector_intrinsics.h:20:10: fatal error: 'type_traits' file not found

#include &lt;type_traits&gt;

         ^~~~~~~~~~~~~

1 warning and 1 error generated.

run stack spill compile error:  In file included from &lt;built-in&gt;:1:

In file included from /home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_runtime_wrapper.h:39:

/home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_vector_types.h:19:2: warning: The vector size is manually reset. [-W#warnings]

#warning The vector size is manually reset.

 ^

In file included from &lt;built-in&gt;:1:

In file included from /home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_runtime_wrapper.h:68:

/home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_vector_intrinsics.h:20:10: fatal error: 'type_traits' file not found

#include &lt;type_traits&gt;

         ^~~~~~~~~~~~~

1 warning and 1 error generated.

run stack spill compile error:  In file included from &lt;built-in&gt;:1:

In file included from /home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_runtime_wrapper.h:39:

/home/nathan/Ascend/ascend-toolkit/7.0.RC1.alpha003/x86_64-linux/ccec_compiler/lib/clang/15.0.5/include/__clang_cce_vector_types.h:19:2: warning: The vector size is manually reset. [-W#warnings]

#warning The vector size is manually reset.

我要发帖子