Skip to content
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 find fetch variable in scope #771

Closed
kuke opened this issue Mar 26, 2018 · 0 comments
Closed

Cannot find fetch variable in scope #771

kuke opened this issue Mar 26, 2018 · 0 comments
Labels

Comments

@kuke
Copy link
Collaborator

kuke commented Mar 26, 2018

In inference

Traceback (most recent call last):
  File "infer_by_ckpt.py", line 180, in <module>
    infer_from_ckpt(args)
  File "infer_by_ckpt.py", line 165, in infer_from_ckpt
    return_numpy=False)
  File "/home/baidu/liuyibing/paddle_envs/latest/local/lib/python2.7/site-packages/paddle/fluid/executor.py", line 373, in run
    self.executor.run(program.desc, scope, 0, True, True)
paddle.fluid.core.EnforceNotMet: Cannot find fetch variable in scope, fetch_var_name is fc_5.tmp_2 at [/home/baidu/liuyibing/paddle_work/Paddle_tmp/paddle/fluid/operators/fetch_op.cc:40]
PaddlePaddle Call Stacks:
0       0x7f1defb0b037p paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 727
1       0x7f1defe93205p paddle::operators::FetchOp::RunImpl(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_> const&) const + 1573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant