===========
= Summary =
===========
Driver: Not installed.
Toolkit: Ascend-cann-toolkit_7.0.0_linux-x86_64 install success, installed in /home/rosnoetic/Ascend.
Please make sure that the environment variables have been configured.
- To take effect for current user, you can exec command below: source /home/rosnoetic/Ascend/ascend-toolkit/set_env.sh or add "source /home/rosnoetic/Ascend/ascend-toolkit/set_env.sh" to ~/.bashrc.
这是我安装了新的CANN后的终端界面
然后我cd到我onnx所在的文件夹
source /home/rosnoetic/Ascend/ascend-toolkit/set_env.sh
export LD_LIBRARY_PATH=/home/rosnoetic/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:$LD_LIBRARY_PATH
使用上面两个命令激活环境
atc --model=grconvnet3_drop1_ch32.onnx --framework=5 --output=grconvnet3_drop1_ch32_7.0.0 --soc_version=Ascend310B4
这是我的atc命令
出现错误
Traceback (most recent call last):
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/utils/multiprocess_util.py", line 91, in run
key, func, args, kwargs = self.task_q.get(timeout=TIMEOUT)
File "<string>", line 2, in get
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/managers.py", line 835, in _callmethod
kind, result = conn.recv()
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 414, in _recv_bytes
buf = self._recv(4)
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
ConnectionResetError: [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/util.py", line 300, in _run_finalizers
finalizer()
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/route.py", line 51, in wrapper
return func(cls, *args, **kwargs)
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/route.py", line 207, in finalize
cls.bank_process_pool.close()
AttributeError: 'NoneType' object has no attribute 'close'
...
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E40021: Failed to compile Op [Conv_33,[Conv_33,Conv_33]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
ConnectionResetError: [Errno 104] Connection reset by peer
], optype: [Conv2D])
Solution: See the host log for details, and then check the Python stack where the error log is reported.
TraceBack (most recent call last):
Compile op[Conv_33,[Conv_33,Conv_33]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[48]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
In op [fix_pipe], [fix_pipe does not support single op compilation!]
Failed to compile Op [Conv_8function_graph_4/Conv_8_pass.1,[Add_9,Add_9]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py failed with errormsg/stack: File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/utils/errormgr/error_manager_vector.py", line 284, in raise_err_specific_reson
raise RuntimeError(args_dict, msg)
RuntimeError: ({'errCode': 'E61001', 'op_name': 'fix_pipe', 'reason': 'fix_pipe does not support single op compilation!'}, 'In op [fix_pipe], [fix_pipe does not support single op compilation!]')
], optype: [FixPipe])
Compile op[Conv_8function_graph_4/Conv_8_pass.1,[Add_9,Add_9]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py], optype[FixPipe], taskID[81]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_6function_graph_3/Conv_6_pass.1,[Relu_7,Relu_7]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py failed with errormsg/stack: File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/utils/errormgr/error_manager_vector.py", line 284, in raise_err_specific_reson
raise RuntimeError(args_dict, msg)
RuntimeError: ({'errCode': 'E61001', 'op_name': 'fix_pipe', 'reason': 'fix_pipe does not support single op compilation!'}, 'In op [fix_pipe], [fix_pipe does not support single op compilation!]')
], optype: [FixPipe])
Compile op[Conv_6function_graph_3/Conv_6_pass.1,[Relu_7,Relu_7]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py], optype[FixPipe], taskID[91]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_0function_graph_0/Conv_0_pass.1,[Relu_1,Relu_1]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py failed with errormsg/stack: File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/utils/errormgr/error_manager_vector.py", line 284, in raise_err_specific_reson
raise RuntimeError(args_dict, msg)
RuntimeError: ({'errCode': 'E61001', 'op_name': 'fix_pipe', 'reason': 'fix_pipe does not support single op compilation!'}, 'In op [fix_pipe], [fix_pipe does not support single op compilation!]')
], optype: [FixPipe])
Compile op[Conv_0function_graph_0/Conv_0_pass.1,[Relu_1,Relu_1]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py], optype[FixPipe], taskID[101]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_2function_graph_1/Conv_2_pass.1,[Relu_3,Relu_3]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py failed with errormsg/stack: File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/utils/errormgr/error_manager_vector.py", line 284, in raise_err_specific_reson
raise RuntimeError(args_dict, msg)
RuntimeError: ({'errCode': 'E61001', 'op_name': 'fix_pipe', 'reason': 'fix_pipe does not support single op compilation!'}, 'In op [fix_pipe], [fix_pipe does not support single op compilation!]')
], optype: [FixPipe])
Compile op[Conv_2function_graph_1/Conv_2_pass.1,[Relu_3,Relu_3]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py], optype[FixPipe], taskID[103]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_0function_graph_0/Conv_0,[Conv_0,Conv_0]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
], optype: [Conv2D])
Compile op[Conv_0function_graph_0/Conv_0,[Conv_0,Conv_0]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[100]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_8function_graph_4/Conv_8,[Conv_8,Conv_8]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
], optype: [Conv2D])
Compile op[Conv_8function_graph_4/Conv_8,[Conv_8,Conv_8]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[80]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_2function_graph_1/Conv_2,[Conv_2,Conv_2]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
], optype: [Conv2D])
Compile op[Conv_2function_graph_1/Conv_2,[Conv_2,Conv_2]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[102]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_4function_graph_2/Conv_4,[Conv_4,Conv_4]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
], optype: [Conv2D])
Compile op[Conv_4function_graph_2/Conv_4,[Conv_4,Conv_4]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[104]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_4function_graph_2/Conv_4] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_36] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_4function_graph_2/Conv_4_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_35] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_34] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_33] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_8function_graph_4/Conv_8_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_12function_graph_6/Conv_12_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_16function_graph_8/Conv_16_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_20function_graph_10/Conv_20_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_24function_graph_12/Conv_24_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_6function_graph_3/Conv_6_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_10function_graph_5/Conv_10_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_14function_graph_7/Conv_14_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_18function_graph_9/Conv_18_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_22function_graph_11/Conv_22_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_0function_graph_0/Conv_0_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_2function_graph_1/Conv_2_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_0function_graph_0/Conv_0] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_8function_graph_4/Conv_8] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_12function_graph_6/Conv_12] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_16function_graph_8/Conv_16] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_20function_graph_10/Conv_20] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_24function_graph_12/Conv_24] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_6function_graph_3/Conv_6] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_10function_graph_5/Conv_10] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_14function_graph_7/Conv_14] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_18function_graph_9/Conv_18] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_22function_graph_11/Conv_22] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_2function_graph_1/Conv_2] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ParalCompOp] Thread[139645842552576] process fail task failed[FUNC:ParallelCompileOp][FILE:tbe_op_store_adapter.cc][LINE:1001]
[SubGraphOpt][Compile][CompOpOnly] CompileOp failed.[FUNC:CompileOpOnly][FILE:op_compiler.cc][LINE:1127]
[GraphOpt][FusedGraph][RunCompile] Failed to compile graph with compiler Normal mode Op Compiler[FUNC:SubGraphCompile][FILE:fe_graph_optimizer.cc][LINE:1292]
Call OptimizeFusedGraph failed, ret:-1, engine_name:AIcoreEngine, graph_name:partition0_rank1_new_sub_graph1[FUNC:OptimizeSubGraph][FILE:graph_optimize.cc][LINE:131]
subgraph 0 optimize failed[FUNC:OptimizeSubGraphWithMultiThreads][FILE:graph_manager.cc][LINE:996]
build graph failed, graph id:0, ret:-1[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1615]
GenerateOfflineModel execute failed.
Compile operator failed, cause: 32Broken pipe File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/interface.py", line 42, in cann_kb_finalize
RouteServer.finalize()
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/route.py", line 51, in wrapper
return func(cls, *args, **kwargs)
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/route.py", line 212, in finalize
cls.cann_kb_mgr.finalize()
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/cann_kb_manager/knowledge_bank_manager.py", line 41, in finalize
self.__dynamic_mgr.close()
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/cann_kb_manager/base_manager.py", line 327, in close
for name in copy.deepcopy(self.write_kb.keys()):
File "<string>", line 2, in keys
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/managers.py", line 834, in _callmethod
conn.send((self._id, methodname, args, kwds))
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
self._send(header + buf)
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 368, in _send
n = write(self._handle, buf)
ubuntu版本20.04
我换的新的CANN版本是7.0.0beta1 我使用6.2RC.alpha001转换此模型时就没有出现问题
不知道是不是因为固件驱动的问题,或者是我安装CANN包的时候没有在root用户中安装,亦或者是我是在conda环境下执行的命令,但是conda环境下的python版本是3.8是支持的,base环境下的python环境为3.12
如果是固件问题我应该下载下图中的哪个(没下载过固件和驱动)
===========
= Summary =
===========
Driver: Not installed.
Toolkit: Ascend-cann-toolkit_7.0.0_linux-x86_64 install success, installed in /home/rosnoetic/Ascend.
Please make sure that the environment variables have been configured.
- To take effect for current user, you can exec command below: source /home/rosnoetic/Ascend/ascend-toolkit/set_env.sh or add "source /home/rosnoetic/Ascend/ascend-toolkit/set_env.sh" to ~/.bashrc.
这是我安装了新的CANN后的终端界面
然后我cd到我onnx所在的文件夹
source /home/rosnoetic/Ascend/ascend-toolkit/set_env.sh
export LD_LIBRARY_PATH=/home/rosnoetic/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:$LD_LIBRARY_PATH
使用上面两个命令激活环境
atc --model=grconvnet3_drop1_ch32.onnx --framework=5 --output=grconvnet3_drop1_ch32_7.0.0 --soc_version=Ascend310B4
这是我的atc命令
出现错误
Traceback (most recent call last):
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/utils/multiprocess_util.py", line 91, in run
key, func, args, kwargs = self.task_q.get(timeout=TIMEOUT)
File "<string>", line 2, in get
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/managers.py", line 835, in _callmethod
kind, result = conn.recv()
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 414, in _recv_bytes
buf = self._recv(4)
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
ConnectionResetError: [Errno 104] Connection reset by peer
Traceback (most recent call last):
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/util.py", line 300, in _run_finalizers
finalizer()
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/route.py", line 51, in wrapper
return func(cls, *args, **kwargs)
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/route.py", line 207, in finalize
cls.bank_process_pool.close()
AttributeError: 'NoneType' object has no attribute 'close'
...
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E40021: Failed to compile Op [Conv_33,[Conv_33,Conv_33]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
ConnectionResetError: [Errno 104] Connection reset by peer
], optype: [Conv2D])
Solution: See the host log for details, and then check the Python stack where the error log is reported.
TraceBack (most recent call last):
Compile op[Conv_33,[Conv_33,Conv_33]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[48]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
In op [fix_pipe], [fix_pipe does not support single op compilation!]
Failed to compile Op [Conv_8function_graph_4/Conv_8_pass.1,[Add_9,Add_9]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py failed with errormsg/stack: File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/utils/errormgr/error_manager_vector.py", line 284, in raise_err_specific_reson
raise RuntimeError(args_dict, msg)
RuntimeError: ({'errCode': 'E61001', 'op_name': 'fix_pipe', 'reason': 'fix_pipe does not support single op compilation!'}, 'In op [fix_pipe], [fix_pipe does not support single op compilation!]')
], optype: [FixPipe])
Compile op[Conv_8function_graph_4/Conv_8_pass.1,[Add_9,Add_9]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py], optype[FixPipe], taskID[81]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_6function_graph_3/Conv_6_pass.1,[Relu_7,Relu_7]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py failed with errormsg/stack: File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/utils/errormgr/error_manager_vector.py", line 284, in raise_err_specific_reson
raise RuntimeError(args_dict, msg)
RuntimeError: ({'errCode': 'E61001', 'op_name': 'fix_pipe', 'reason': 'fix_pipe does not support single op compilation!'}, 'In op [fix_pipe], [fix_pipe does not support single op compilation!]')
], optype: [FixPipe])
Compile op[Conv_6function_graph_3/Conv_6_pass.1,[Relu_7,Relu_7]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py], optype[FixPipe], taskID[91]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_0function_graph_0/Conv_0_pass.1,[Relu_1,Relu_1]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py failed with errormsg/stack: File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/utils/errormgr/error_manager_vector.py", line 284, in raise_err_specific_reson
raise RuntimeError(args_dict, msg)
RuntimeError: ({'errCode': 'E61001', 'op_name': 'fix_pipe', 'reason': 'fix_pipe does not support single op compilation!'}, 'In op [fix_pipe], [fix_pipe does not support single op compilation!]')
], optype: [FixPipe])
Compile op[Conv_0function_graph_0/Conv_0_pass.1,[Relu_1,Relu_1]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py], optype[FixPipe], taskID[101]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_2function_graph_1/Conv_2_pass.1,[Relu_3,Relu_3]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py failed with errormsg/stack: File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/utils/errormgr/error_manager_vector.py", line 284, in raise_err_specific_reson
raise RuntimeError(args_dict, msg)
RuntimeError: ({'errCode': 'E61001', 'op_name': 'fix_pipe', 'reason': 'fix_pipe does not support single op compilation!'}, 'In op [fix_pipe], [fix_pipe does not support single op compilation!]')
], optype: [FixPipe])
Compile op[Conv_2function_graph_1/Conv_2_pass.1,[Relu_3,Relu_3]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/fix_pipe.py], optype[FixPipe], taskID[103]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_0function_graph_0/Conv_0,[Conv_0,Conv_0]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
], optype: [Conv2D])
Compile op[Conv_0function_graph_0/Conv_0,[Conv_0,Conv_0]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[100]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_8function_graph_4/Conv_8,[Conv_8,Conv_8]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
], optype: [Conv2D])
Compile op[Conv_8function_graph_4/Conv_8,[Conv_8,Conv_8]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[80]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_2function_graph_1/Conv_2,[Conv_2,Conv_2]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
], optype: [Conv2D])
Compile op[Conv_2function_graph_1/Conv_2,[Conv_2,Conv_2]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[102]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
Failed to compile Op [Conv_4function_graph_2/Conv_4,[Conv_4,Conv_4]]. (oppath: [Compile /home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py failed with errormsg/stack: File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 630, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
], optype: [Conv2D])
Compile op[Conv_4function_graph_2/Conv_4,[Conv_4,Conv_4]] failed, oppath[/home/rosnoetic/Ascend/ascend-toolkit/7.0.0/opp/built-in/op_impl/ai_core/tbe/impl/conv2d.py], optype[Conv2D], taskID[104]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:771]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_4function_graph_2/Conv_4] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_36] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_4function_graph_2/Conv_4_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_35] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_34] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_33] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_8function_graph_4/Conv_8_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_12function_graph_6/Conv_12_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_16function_graph_8/Conv_16_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_20function_graph_10/Conv_20_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_24function_graph_12/Conv_24_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_6function_graph_3/Conv_6_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_10function_graph_5/Conv_10_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_14function_graph_7/Conv_14_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_18function_graph_9/Conv_18_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_22function_graph_11/Conv_22_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_0function_graph_0/Conv_0_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_2function_graph_1/Conv_2_pass.1] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_0function_graph_0/Conv_0] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_8function_graph_4/Conv_8] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_12function_graph_6/Conv_12] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_16function_graph_8/Conv_16] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_20function_graph_10/Conv_20] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_24function_graph_12/Conv_24] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_6function_graph_3/Conv_6] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_10function_graph_5/Conv_10] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_14function_graph_7/Conv_14] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_18function_graph_9/Conv_18] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_22function_graph_11/Conv_22] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ProcFailedCompTask] Thread[139645842552576] recompile single op[Conv_2function_graph_1/Conv_2] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:954]
[SubGraphOpt][Compile][ParalCompOp] Thread[139645842552576] process fail task failed[FUNC:ParallelCompileOp][FILE:tbe_op_store_adapter.cc][LINE:1001]
[SubGraphOpt][Compile][CompOpOnly] CompileOp failed.[FUNC:CompileOpOnly][FILE:op_compiler.cc][LINE:1127]
[GraphOpt][FusedGraph][RunCompile] Failed to compile graph with compiler Normal mode Op Compiler[FUNC:SubGraphCompile][FILE:fe_graph_optimizer.cc][LINE:1292]
Call OptimizeFusedGraph failed, ret:-1, engine_name:AIcoreEngine, graph_name:partition0_rank1_new_sub_graph1[FUNC:OptimizeSubGraph][FILE:graph_optimize.cc][LINE:131]
subgraph 0 optimize failed[FUNC:OptimizeSubGraphWithMultiThreads][FILE:graph_manager.cc][LINE:996]
build graph failed, graph id:0, ret:-1[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1615]
GenerateOfflineModel execute failed.
Compile operator failed, cause: 32Broken pipe File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/interface.py", line 42, in cann_kb_finalize
RouteServer.finalize()
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/route.py", line 51, in wrapper
return func(cls, *args, **kwargs)
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/route.py", line 212, in finalize
cls.cann_kb_mgr.finalize()
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/cann_kb_manager/knowledge_bank_manager.py", line 41, in finalize
self.__dynamic_mgr.close()
File "/home/rosnoetic/Ascend/ascend-toolkit/latest/python/site-packages/tbe/common/repository_manager/cann_kb_manager/base_manager.py", line 327, in close
for name in copy.deepcopy(self.write_kb.keys()):
File "<string>", line 2, in keys
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/managers.py", line 834, in _callmethod
conn.send((self._id, methodname, args, kwds))
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
self._send(header + buf)
File "/home/rosnoetic/miniconda3/envs/zzx/lib/python3.8/multiprocessing/connection.py", line 368, in _send
n = write(self._handle, buf)
ubuntu版本20.04
我换的新的CANN版本是7.0.0beta1 我使用6.2RC.alpha001转换此模型时就没有出现问题
不知道是不是因为固件驱动的问题,或者是我安装CANN包的时候没有在root用户中安装,亦或者是我是在conda环境下执行的命令,但是conda环境下的python版本是3.8是支持的,base环境下的python环境为3.12
如果是固件问题我应该下载下图中的哪个(没下载过固件和驱动)