pyreader返回数据size错误
Created by: Rayarrow94
GPU训练报错:
Traceback (most recent call last): File "train.py", line 734, in train(args) File "train.py", line 685, in train train_exe.run(fetch_list=[]) File "/home/disk2/chenjian11/tools/python36/lib/python3.6/site-packages/paddle/fluid/parallel_executor.py", line 303, in run self.executor.run(fetch_list, fetch_var_name) paddle.fluid.core.EnforceNotMet: Invoke operator read error. Python Callstacks: File "/home/disk2/chenjian11/tools/python36/lib/python3.6/site-packages/paddle/fluid/framework.py", line 1317, in append_op attrs=kwargs.get("attrs", None)) File "/home/disk2/chenjian11/tools/python36/lib/python3.6/site-packages/paddle/fluid/layer_helper.py", line 56, in append_op return self.main_program.current_block().append_op(args, kwargs) File "/home/disk2/chenjian11/tools/python36/lib/python3.6/site-packages/paddle/fluid/layers/io.py", line 1075, in read_file type='read', inputs={'Reader': [reader]}, outputs={'Out': out}) File "train.py", line 287, in create_model label, inputmask_query_ids, inputmask_gs_feed_title, inputmask_rec_query = fluid.layers.read_file(pyreader) File "train.py", line 565, in train cost_ad = create_model(pyreader_name='train_reader', ernie_config=ernie_config) File "train.py", line 734, in train(args) C++ Callstacks: Enforce failed. Expected ins.size() == out_arg_names.size(), but received ins.size():1 != out_arg_names.size():45. at [/paddle/paddle/fluid/operators/reader/read_op.cc:107] PaddlePaddle Call Stacks: 0 0x7f6d2382437dp void paddle::platform::EnforceNotMet::Initstd::string(std::string, char const, int) + 365 1 0x7f6d238246c7p paddle::platform::EnforceNotMet::EnforceNotMet(std::string const&, char const, int) + 87 2 0x7f6d244a57e5p paddle::operators::ReadOp::RunImpl(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, 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 + 3237 3 0x7f6d252ff175p paddle::framework::OperatorBase::Run(paddle::framework::Scope const&, boost::variant<paddle::platform::CUDAPlace, paddle::platform::CPUPlace, paddle::platform::CUDAPinnedPlace, 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&) + 341 4 0x7f6d25176169p 5 0x7f6d2516ecedp 6 0x7f6d2516e635p paddle::framework::details::OpHandleBase::RunAndRecordEvent(std::function<void ()> const&) + 805 7 0x7f6d25175dfcp paddle::framework::details::ComputationOpHandle::RunImpl() + 124 8 0x7f6d2516f556p paddle::framework::details::OpHandleBase::Run(bool) + 118 9 0x7f6d2510776dp 10 0x7f6d2510816dp paddle::framework::details::ThreadedSSAGraphExecutor::RunOp(std::shared_ptr<paddle::framework::BlockingQueuepaddle::framework::details::VarHandleBase* > const&, paddle::framework::details::OpHandleBase) + 1309 11 0x7f6d25109de4p paddle::framework::details::ThreadedSSAGraphExecutor::Run(std::vector<std::string, std::allocatorstd::string > const&) + 2324 12 0x7f6d25100e6ap paddle::framework::details::ScopeBufferedSSAGraphExecutor::Run(std::vector<std::string, std::allocatorstd::string > const&) + 394 13 0x7f6d2395f1f2p paddle::framework::ParallelExecutor::Run(std::vector<std::string, std::allocatorstd::string > const&, std::string const&) + 562 14 0x7f6d23813fcep 15 0x7f6d2384f1eep 16 0x7f6d8f1db9fdp _PyCFunction_FastCallDict + 557 17 0x7f6d8f273f18p 18 0x7f6d8f278b56p _PyEval_EvalFrameDefault + 16774 19 0x7f6d8f273daep 20 0x7f6d8f2740c2p 21 0x7f6d8f2785a8p _PyEval_EvalFrameDefault + 15320 22 0x7f6d8f273440p 23 0x7f6d8f274364p 24 0x7f6d8f278b56p _PyEval_EvalFrameDefault + 16774 25 0x7f6d8f273daep 26 0x7f6d8f2743ddp PyEval_EvalCodeEx + 109 27 0x7f6d8f27442bp PyEval_EvalCode + 59 28 0x7f6d8f2af2b2p PyRun_FileExFlags + 178 29 0x7f6d8f2af417p PyRun_SimpleFileExFlags + 231 30 0x7f6d8f2cb51dp Py_Main + 3757 31 0x400bbcp main + 364 32 0x7f6d8e45bbd5p __libc_start_main + 245 33 0x400c7dp
terminate called without an active exception