EnforceNotMet错误
Created by: jaegerstar
在做推断时候发生错误,前面样本推断得都没问题,到了中间某个样本就出现了这个,把那个样本删除掉还是同样的错误。
paddle.fluid.core.EnforceNotMet: Enforce failed. Expected begin_idx < end_idx, but received begin_idx:309 >= end_idx:309.
The start row index must be lesser than the end row index. at [/home/tangjian/paddle-release-docer/paddle/fluid/framework/tensor.cc:95]
PaddlePaddle Call Stacks:
0 0x7fc054362f96p paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 486
1 0x7fc054df97bap paddle::framework::Tensor::Slice(int, int) const + 3322
2 0x7fc054c72ef2p paddle::operators::math::ContextProjectFunctor<paddle::platform::CPUDeviceContext, float>::operator()(paddle::platform::CPUDeviceContext const&, paddle::framework::LoDTensor const&, paddle::framework::Tensor const&, bool, int, int, int, int, int, paddle::framework::Tensor*) + 514
3 0x7fc054c75148p paddle::operators::SequenceConvKernel<paddle::platform::CPUDeviceContext, float>::Compute(paddle::framework::ExecutionContext const&) const + 1112
4 0x7fc054c75553p _ZNSt17_Function_handlerIFvRKN6paddle9framework16ExecutionContextEEZNKS1_24OpKernelRegistrarFunctorINS0_8platform8CPUPlaceELb0ELm0EJNS0_9operators18SequenceConvKernelINS7_16CPUDeviceContextEfEENSA_ISB_dEEEEclEPKcSG_EUlS4_E_E9_M_invokeERKSt9_Any_dataS4_ + 35
5 0x7fc054dbdad8p 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 + 488
6 0x7fc054db9f6fp 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&) + 255
7 0x7fc05442358dp paddle::framework::Executor::RunPreparedContext(paddle::framework::ExecutorPrepareContext*, paddle::framework::Scope*, bool, bool, bool) + 301
8 0x7fc054424320p paddle::framework::Executor::Run(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool) + 128
9 0x7fc05434af3dp
10 0x7fc0543951dcp pybind11::cpp_function::dispatcher(_object*, _object*, _object*) + 2540
11 0x7fc0b8c933d4p PyEval_EvalFrameEx + 25956
12 0x7fc0b8c94120p PyEval_EvalCodeEx + 2240
13 0x7fc0b8c92491p PyEval_EvalFrameEx + 22049
14 0x7fc0b8c94120p PyEval_EvalCodeEx + 2240
15 0x7fc0b8c92491p PyEval_EvalFrameEx + 22049
16 0x7fc0b8c94120p PyEval_EvalCodeEx + 2240
17 0x7fc0b8c94232p PyEval_EvalCode + 50
18 0x7fc0b8cae61cp
19 0x7fc0b8cae6f0p PyRun_FileExFlags + 144
20 0x7fc0b8cafbfcp PyRun_SimpleFileExFlags + 220
21 0x7fc0b8cc14bcp Py_Main + 3164
22 0x318ae1ecddp __libc_start_main + 253
23 0x400659p