paddle.fluid.core.EnforceNotMet: holder_ should not be null
Created by: zhengya01
https://github.com/PaddlePaddle/models/blob/develop/fluid/neural_machine_translation/transformer/train.py 把train.py 参数--use-mem-opt的default改为False 报错 Traceback (most recent call last): File "train.py", line 641, in train(args) File "train.py", line 593, in train token_num, predict, pyreader) File "train.py", line 468, in train_loop feed=feed_dict_list) File "/home/paddle/minqiyang/miniconda2/lib/python2.7/site-packages/paddle/fluid/parallel_executor.py", line 281, in run self.executor.run(fetch_list, fetch_var_name) paddle.fluid.core.EnforceNotMet: holder_ should not be null Tensor not initialized yet when Tensor::type() is called. at [/paddle/paddle/fluid/framework/tensor.h:141] PaddlePaddle Call Stacks: 0 0x7f94e3e6e446p paddle::platform::EnforceNotMet::EnforceNotMet(std::exception_ptr::exception_ptr, char const*, int) + 486 1 0x7f94e3e70a27p paddle::framework::Tensor::type() const + 151 2 0x7f94e44c502bp paddle::operators::ElementwiseOpGrad::GetExpectedKernelType(paddle::framework::ExecutionContext const&) const + 107 3 0x7f94e4ef62bdp paddle::framework::OperatorWithKernel::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 + 237 4 0x7f94e4ef2e4cp 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&) + 252 5 0x7f94e4d4d9a7p 6 0x7f94e4d6b190p 7 0x7f94e4d6a9f5p paddle::framework::details::OpHandleBase::RunAndRecordEvent(std::function<void ()> const&) + 805 8 0x7f94e4d4d47fp paddle::framework::details::ComputationOpHandle::RunImpl() + 95 9 0x7f94e4d6ba95p paddle::framework::details::OpHandleBase::Run(bool) + 117 10 0x7f94e4d429afp 11 0x7f94e3f3da13p std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result, std::__future_base::_Result_base::_Deleter>, void> >::_M_invoke(std::_Any_data const&) + 35 12 0x7f94e3f3d1e7p std::__future_base::_State_base::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>&, bool&) + 39 13 0x7f9562d91be0p pthread_once + 80 14 0x7f94e4d41ce2p 15 0x7f94e3f3f284p ThreadPool::ThreadPool(unsigned long)::{lambda()#1 (closed)}::operator()() const + 404 16 0x7f9552b6bc5cp 17 0x7f9562d8cdf3p 18 0x7f95623b12cdp clone + 109