-
Notifications
You must be signed in to change notification settings - Fork 195
Description
训练完成后没有查找到模型权重文件,导致报错。
/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文件。