报错信息如下,不同mindir文件转换时报同一个错误,应该不是mindir文件的问题:
atc --model ./get_position_10240_10.mindir --framework=1 --output=./position --soc_version=Ascend310P1
ATC start working now, please wait for a moment.
[libprotobuf ERROR wire_format_lite.cc:577] String field ‘ge.proto.GraphDef.name’ contains invalid UTF-8 data when parsing a protocol buffer. Use the ‘bytes’ type if you intend to send raw bytes.
…
ATC run failed, Please check the detail log, Try ‘atc --help’ for more information
E10041: 2026-05-27-14:54:13.903.857 Failed to load the model from [./get_position_10240_10.mindir].
Solution: 1. Check that the model file is valid. 2. Check that the weight file or path is valid when model is more than 2G. 3. Check that the [–framework] argument matches the actual framework of the model file.
TraceBack (most recent call last):
ParseFromFileDescriptor failed, file:/home/y30011219/get_position_10240_10.mindir.[FUNC:LoadFromFile][FILE:model.cc][LINE:217]
Failed to load the model from [./get_position_10240_10.mindir].
[root@tono y30011219]#
[root@tono y30011219]#
[root@tono y30011219]# atc --model ./preliminary_ascend.mindir --framework=1 --output=./position --soc_version=Ascend310P1
ATC start working now, please wait for a moment.
[libprotobuf ERROR wire_format_lite.cc:577] String field ‘ge.proto.GraphDef.name’ contains invalid UTF-8 data when parsing a protocol buffer. Use the ‘bytes’ type if you intend to send raw bytes.
…
ATC run failed, Please check the detail log, Try ‘atc --help’ for more information
E10041: 2026-05-27-14:54:51.618.442 Failed to load the model from [./preliminary_ascend.mindir].
Solution: 1. Check that the model file is valid. 2. Check that the weight file or path is valid when model is more than 2G. 3. Check that the [–framework] argument matches the actual framework of the model file.
TraceBack (most recent call last):
ParseFromFileDescriptor failed, file:/home/y30011219/preliminary_ascend.mindir.[FUNC:LoadFromFile][FILE:model.cc][LINE:217]
Failed to load the model from [./preliminary_ascend.mindir].
CANN版本号:8.0.RC2
MindSpore版本:v2.7.0