ATC模型转换报错
收藏回复举报
ATC模型转换报错
t('forum.solved') 已解决
发表于2024-09-16 19:09:13
0 查看
ATC run failed, Please check the detail log, Try 'atc --help' for more information 

E90003: 2024-05-24-17:55:52.559.393 Compile operator failed, cause: Template constraint, detailed information: Tiling func of op_type Transpose failed, failure details: 

Compile_info: {'device_id': None, '_cube_vector_core_type': 'AiCore', 'vars': {'ub_size': 7936, 'core_num': 2, 'dtype': 'float16', 'cache_line': 256, 'vg_cond': 0, 'mte_pad': 0}} 

Inputs: {'shape': (1, 3, 85, 80, 80), 'ori_shape': (1, 3, 85, 80, 80), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'float16', 'addr_type': 0, 'total_shape': [1, 3, 85, 80, 80], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'atomic_type': '', 'input_c_values': -1, 'range': [[1, 1], [3, 3], [85, 85], [80, 80], [80, 80]], 'name': 'x'} 

{'shape': (5,), 'ori_shape': (), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'int32', 'addr_type': 0, 'total_shape': [5], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'const_value': (0, 1, 3, 4, 2), 'atomic_type': '', 'input_c_values': -1, 'range': [[5, 5]], 'name': 'perm'} 

Outputs: {'shape': (1, 3, 80, 80, 85), 'ori_shape': (1, 3, 80, 80, 85), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'float16', 'addr_type': 0, 'total_shape': [1, 3, 80, 80, 85], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'atomic_type': '', 'input_c_values': -1, 'range': [[1, 1], [3, 3], [80, 80], [80, 80], [85, 85]]} 

[OP_TILING] Attrs: []. 

        TraceBack (most recent call last): 

        old funcs/tiling/tiling_parse is null. op type is Transpose.[FUNC:FindImplFuncsOld][FILE:op_tiling_py.cc][LINE:88] 

        TbeOpTilingPyInterfaceOld failed.[FUNC:DoOpTilingForCompile][FILE:op_tiling_py.cc][LINE:1685] 

        Compile operator failed, cause: Template constraint, detailed information: Tiling func of op_type Transpose failed, failure details: 

Compile_info: {'device_id': None, '_cube_vector_core_type': 'AiCore', 'vars': {'ub_size': 7936, 'core_num': 2, 'dtype': 'float16', 'cache_line': 256, 'vg_cond': 0, 'mte_pad': 0}} 

Inputs: {'shape': (1, 3, 85, 80, 80), 'ori_shape': (1, 3, 85, 80, 80), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'float16', 'addr_type': 0, 'total_shape': [1, 3, 85, 80, 80], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'atomic_type': '', 'input_c_values': -1, 'range': [[1, 1], [3, 3], [85, 85], [80, 80], [80, 80]], 'name': 'x'} 

{'shape': (5,), 'ori_shape': (), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'int32', 'addr_type': 0, 'total_shape': [5], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'const_value': (0, 1, 3, 4, 2), 'atomic_type': '', 'input_c_values': -1, 'range': [[5, 5]], 'name': 'perm'} 

Outputs: {'shape': (1, 3, 80, 80, 85), 'ori_shape': (1, 3, 80, 80, 85), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'float16', 'addr_type': 0, 'total_shape': [1, 3, 80, 80, 85], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'atomic_type': '', 'input_c_values': -1, 'range': [[1, 1], [3, 3], [80, 80], [80, 80], [85, 85]]} 

[OP_TILING] Attrs: []. 

        Failed to compile Op [PartitionedCall_Transpose_359_Transpose_41,[Transpose_359,Transpose_359,Transpose_359]]. (oppath: [Compile /usr/local/Ascend/ascend-toolkit/8.0.RC2.alpha002/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/transpose.py failed with errormsg/stack: ], optype: [Transpose]) 

        Compile op[PartitionedCall_Transpose_359_Transpose_41,[Transpose_359,Transpose_359,Transpose_359]] failed, oppath[/usr/local/Ascend/ascend-toolkit/8.0.RC2.alpha002/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/transpose.py], optype[Transpose], taskID[381]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:744] 

        Compile operator failed, cause: Template constraint, detailed information: Tiling func of op_type Transpose failed, failure details: 

Compile_info: {'device_id': None, '_cube_vector_core_type': 'AiCore', 'vars': {'ub_size': 7936, 'core_num': 2, 'dtype': 'float16', 'cache_line': 256, 'vg_cond': 0, 'mte_pad': 0}} 

Inputs: {'shape': (1, 3, 85, 20, 20), 'ori_shape': (1, 3, 85, 20, 20), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'float16', 'addr_type': 0, 'total_shape': [1, 3, 85, 20, 20], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'atomic_type': '', 'input_c_values': -1, 'range': [[1, 1], [3, 3], [85, 85], [20, 20], [20, 20]], 'name': 'x'} 

{'shape': (5,), 'ori_shape': (), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'int32', 'addr_type': 0, 'total_shape': [5], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'const_value': (0, 1, 3, 4, 2), 'atomic_type': '', 'input_c_values': -1, 'range': [[5, 5]], 'name': 'perm'} 

Outputs: {'shape': (1, 3, 20, 20, 85), 'ori_shape': (1, 3, 20, 20, 85), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'float16', 'addr_type': 0, 'total_shape': [1, 3, 20, 20, 85], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'atomic_type': '', 'input_c_values': -1, 'range': [[1, 1], [3, 3], [20, 20], [20, 20], [85, 85]]} 

[OP_TILING] Attrs: []. 

        Failed to compile Op [PartitionedCall_Transpose_419_Transpose_75,[Transpose_419,Transpose_419,Transpose_419]]. (oppath: [Compile /usr/local/Ascend/ascend-toolkit/8.0.RC2.alpha002/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/transpose.py failed with errormsg/stack: ], optype: [Transpose]) 

        Compile op[PartitionedCall_Transpose_419_Transpose_75,[Transpose_419,Transpose_419,Transpose_419]] failed, oppath[/usr/local/Ascend/ascend-toolkit/8.0.RC2.alpha002/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/transpose.py], optype[Transpose], taskID[387]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:744] 

        Compile operator failed, cause: Template constraint, detailed information: Tiling func of op_type Transpose failed, failure details: 

Compile_info: {'device_id': None, '_cube_vector_core_type': 'AiCore', 'vars': {'ub_size': 7936, 'core_num': 2, 'dtype': 'float16', 'cache_line': 256, 'vg_cond': 0, 'mte_pad': 0}} 

Inputs: {'shape': (1, 3, 85, 40, 40), 'ori_shape': (1, 3, 85, 40, 40), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'float16', 'addr_type': 0, 'total_shape': [1, 3, 85, 40, 40], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'atomic_type': '', 'input_c_values': -1, 'range': [[1, 1], [3, 3], [85, 85], [40, 40], [40, 40]], 'name': 'x'} 

{'shape': (5,), 'ori_shape': (), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'int32', 'addr_type': 0, 'total_shape': [5], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'const_value': (0, 1, 3, 4, 2), 'atomic_type': '', 'input_c_values': -1, 'range': [[5, 5]], 'name': 'perm'} 

Outputs: {'shape': (1, 3, 40, 40, 85), 'ori_shape': (1, 3, 40, 40, 85), 'format': 'ND', 'sub_format': 0, 'ori_format': 'ND', 'dtype': 'float16', 'addr_type': 0, 'total_shape': [1, 3, 40, 40, 85], 'slice_offset': (), 'L1_addr_offset': 0, 'L1_fusion_type': -1, 'L1_workspace_size': -1, 'valid_shape': (), 'split_index': 0, 'atomic_type': '', 'input_c_values': -1, 'range': [[1, 1], [3, 3], [40, 40], [40, 40], [85, 85]]} 

[OP_TILING] Attrs: []. 

        Failed to compile Op [PartitionedCall_Transpose_389_Transpose_60,[Transpose_389,Transpose_389,Transpose_389]]. (oppath: [Compile /usr/local/Ascend/ascend-toolkit/8.0.RC2.alpha002/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/transpose.py failed with errormsg/stack: ], optype: [Transpose]) 

        Compile op[PartitionedCall_Transpose_389_Transpose_60,[Transpose_389,Transpose_389,Transpose_389]] failed, oppath[/usr/local/Ascend/ascend-toolkit/8.0.RC2.alpha002/opp/built-in/op_impl/ai_core/tbe/impl/dynamic/transpose.py], optype[Transpose], taskID[393]. Please check op's compilation error message.[FUNC:ReportBuildErrMessage][FILE:fusion_manager.cc][LINE:744] 

        [SubGraphOpt][Compile][ProcFailedCompTask] Thread[255084163877312] recompile single op[PartitionedCall_Transpose_419_Transpose_75] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:963] 

        [SubGraphOpt][Compile][ParalCompOp] Thread[255084163877312] process fail task failed[FUNC:ParallelCompileOp][FILE:tbe_op_store_adapter.cc][LINE:1011] 

        [SubGraphOpt][Compile][CompOpOnly] CompileOp failed.[FUNC:CompileOpOnly][FILE:op_compiler.cc][LINE:1119] 

        [GraphOpt][FusedGraph][RunCompile] Failed to compile graph with compiler Normal mode Op Compiler[FUNC:SubGraphCompile][FILE:fe_graph_optimizer.cc][LINE:1396] 

        Call OptimizeFusedGraph failed, ret:-1, engine_name:AIcoreEngine, graph_name:partition0_rank13_new_sub_graph242[FUNC:OptimizeSubGraph][FILE:graph_optimize.cc][LINE:126] 

        [SubGraphOpt][Compile][ProcFailedCompTask] Thread[255084214602176] recompile single op[PartitionedCall_Transpose_359_Transpose_41] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:963] 

        [SubGraphOpt][Compile][ParalCompOp] Thread[255084214602176] process fail task failed[FUNC:ParallelCompileOp][FILE:tbe_op_store_adapter.cc][LINE:1011] 

        Call OptimizeFusedGraph failed, ret:-1, engine_name:AIcoreEngine, graph_name:partition0_rank9_new_sub_graph236[FUNC:OptimizeSubGraph][FILE:graph_optimize.cc][LINE:126] 

        [SubGraphOpt][Compile][ProcFailedCompTask] Thread[255084189239744] recompile single op[PartitionedCall_Transpose_389_Transpose_60] failed[FUNC:ProcessAllFailedCompileTasks][FILE:tbe_op_store_adapter.cc][LINE:963] 

        [SubGraphOpt][Compile][ParalCompOp] Thread[255084189239744] process fail task failed[FUNC:ParallelCompileOp][FILE:tbe_op_store_adapter.cc][LINE:1011] 

        Call OptimizeFusedGraph failed, ret:-1, engine_name:AIcoreEngine, graph_name:partition0_rank11_new_sub_graph239[FUNC:OptimizeSubGraph][FILE:graph_optimize.cc][LINE:126] 

        subgraph 8 optimize failed[FUNC:OptimizeSubGraphWithMultiThreads][FILE:graph_manager.cc][LINE:1024] 

        build graph failed, graph id:0, ret:-1[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1615] 

        GenerateOfflineModel execute failed. 

我要发帖子