baidu / baidu/DuReader

在flask中去使用predict 方法,加载模型的时候报错

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
306
PR merge metrics
No merged PRs in 30d

Description

你好,我在gpu上面使用paddlepaddle的dureader mrc版本,去训练的模型,
然后在gpu上面去加载模型预测的时候,没有问题,
但是在cpu上面加载模型的时候就报下面这个错误,
paddle的版本是1.2.0

这个paddlepaddle版本中的predict方法,在cpu上面你们测试过好用吗?

能否帮忙看看呀?感激不尽

paddle.fluid.core.EnforceNotMet: Cannot open file models/4/4\pn_decoder:fw:static_rnn:_lstm_f_b for load op at [E:\dist\Paddle\paddle\fluid\operators\load_op.cc:39]

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Flask predict path and the model-loading failure reported for PaddlePaddle 1.2.0, including the load_op.cc error for models/4/4\pn_decoder:fw:static_rnn:_lstm_f_b. Reproduce loading the DuReader MRC model on CPU after GPU training and verify that prediction completes without the reported file-loading error.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.