Skip to content

Cannot find fetch variable in scope #771

@kuke

Description

@kuke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions