-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
最后一步进行模型训练和推理测试的时候出现Cannot open file output/model.pdmodel #1554
Comments
能描述一下当前的软硬件环境吗? |
硬件:Atlas 800T A2 CANN版本:8.0.RC1 驱动:Version: 24.1.rc3; aarch64 |
这个单测在910B上应该是没有问题的,你前面训练的过程是正常的是吧? 把完整的log发出来看下吧 |
I0114 13:45:47.044159 88978 init.cc:237] ENV [CUSTOM_DEVICE_ROOT]=/usr/local/lib/python3.10/dist-packages/paddle_custom_device warnings.warn( |
pir有相应升级,加上如下变量进行尝试,稍后我更新相关文档 export FLAGS_enable_pir_api=False |
训练完成后没有查找到模型权重文件,导致报错。
/usr/local/lib/python3.10/dist-packages/paddle/jit/dy2static/program_translator.py:770: UserWarning: full_graph=False don't support input_spec arguments. It will not produce any effect.
You can set full_graph=True, then you can assign input spec.
warnings.warn(
Traceback (most recent call last):
File "/mnt/nvme/yiqidata/paddle-npu/PaddleCustomDevice/backends/npu/build/tests/test_LeNet_MNIST.py", line 261, in
main(args)
File "/mnt/nvme/yiqidata/paddle-npu/PaddleCustomDevice/backends/npu/build/tests/test_LeNet_MNIST.py", line 209, in main
infer("output")
File "/mnt/nvme/yiqidata/paddle-npu/PaddleCustomDevice/backends/npu/build/tests/test_LeNet_MNIST.py", line 76, in infer
config = paddle_infer.Config(model_file, params_file)
RuntimeError: (NotFound) Cannot open file output/model.pdmodel, please confirm whether the file is normal.
[Hint: Expected paddle::inference::IsFileExists(prog_file_) == true, but received paddle::inference::IsFileExists(prog_file_):0 != true:1.] (at /paddle/paddle/fluid/inference/api/analysis_config.cc:117) 检查确实没有输出output/model.pdmodel文件。
The text was updated successfully, but these errors were encountered: