You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import numpy as np
import mindspore_lite as mslite
# init context, and set target is ascend.
context = mslite.Context()
context.target = ["Ascend"]
context.ascend.device_id = 0
# build model from file
MODEL_PATH = "./paddle_clas_cann7_m22.mindir"
model = mslite.Model()
model.build_from_file(MODEL_PATH, mslite.ModelType.MINDIR, context)
报错
(mindspore) -sh-5.1# python infer.py
[ERROR] ME(2974,e7ffe882c020,python):2024-08-10-23:30:56.704.903 [mindspore/lite/src/extendrt/kernel/ascend/model/model_process.cc:586] Load] Call aclmdlLoadFromMem failed, ret = 545002
[ERROR] ME(2974,e7ffe882c020,python):2024-08-10-23:30:56.705.027 [mindspore/lite/src/extendrt/kernel/ascend/model/model_infer.cc:150] Load] Load model model failed.
[ERROR] ME(2974,e7ffe882c020,python):2024-08-10-23:30:56.705.082 [mindspore/lite/src/extendrt/kernel/ascend/src/custom_ascend_kernel.cc:147] Init] Load om data failed.
[ERROR] ME(2974,e7ffe882c020,python):2024-08-10-23:30:56.705.137 [mindspore/lite/src/extendrt/session/single_op_session.cc:199] BuildCustomAscendKernelImpl] kernel init failed CustomAscend
[ERROR] ME(2974,e7ffe882c020,python):2024-08-10-23:30:56.706.811 [mindspore/lite/src/extendrt/session/single_op_session.cc:221] BuildCustomAscendKernel] Build ascend kernel failed for node: custom_0
[ERROR] ME(2974,e7ffe882c020,python):2024-08-10-23:30:56.706.877 [mindspore/lite/src/extendrt/session/single_op_session.cc:306] CompileGraph] Failed to Build custom ascend kernel
[ERROR] ME(2974,e7ffe882c020,python):2024-08-10-23:30:56.706.933 [mindspore/lite/src/extendrt/cxx_api/model/model_impl.cc:417] BuildByBufferImpl] compile graph failed.
Traceback (most recent call last):
File "/opt/tmp/infer.py", line 12, in <module>
model.build_from_file(MODEL_PATH, mslite.ModelType.MINDIR, context)
File "/root/anaconda3/envs/mindspore/lib/python3.9/site-packages/mindspore_lite/model.py", line 111, in wrapper
return func(*args, **kwargs)
File "/root/anaconda3/envs/mindspore/lib/python3.9/site-packages/mindspore_lite/model.py", line 262, in build_from_file
raise RuntimeError(
RuntimeError: build_from_file failed! Error is Common error code.
The text was updated successfully, but these errors were encountered:
操作步骤
说明
报错文件:paddle2mindir.log
环境(310B)
环境(910)
代码
报错
The text was updated successfully, but these errors were encountered: