paddlepaddle玄学模型玄学问题
Created by: GuangyanZhang
使用paddlepaddle时,写了一个网络,有三条支路,当图片的W=H时,concat到一起网络完全没问题,当W!=H时,最后concat到一起玄学报错,其中有一条支路死活合并不了,只要合并了这条支路就玄学报错,一合并就报错,这个条支路的主要操作就是卷积,图片W H大小变为原来的八分之一,如果这条支路就做resize网络完全没有问题。!!!!!!!!我已经单步调试了,维度完全匹配!!!!!!!请各位大佬帮我看看,谢谢。 报错信息如下:
EnforceNotMet Traceback (most recent call last) in 77 feed={'img':train_data, 78 'label':train_label_data}, ---> 79 fetch_list=[avg_cost.name, acc.name]) 80 print('inputs00000000000000000000017') 81 if batch_id % 10 == 0:
/opt/conda/envs/py35-paddle1.0.0/lib/python3.5/site-packages/paddle/fluid/executor.py in run(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache) 468 469 self._feed_data(program, feed, feed_var_name, scope) --> 470 self.executor.run(program.desc, scope, 0, True, True) 471 outs = self._fetch_data(fetch_list, fetch_var_name, scope) 472 if return_numpy:
EnforceNotMet: Enforce failed. Expected out_dims[j] == ins[i][j], but received out_dims[j]:32 != ins[i][j]:64. Input tensors should have the same elements except the specify axis. at [/paddle/paddle/fluid/operators/concat_op.cc:52] PaddlePaddle Call Stacks: 0 0x7f51280ae426p paddle::platform::EnforceNotMet::EnforceNotMet(std::exception_ptr::exception_ptr, char const*, int) + 486 1 0x7f51288fb63ep paddle::operators::ConcatOp::InferShape(paddle::framework::InferShapeContext*) const + 1438 2 0x7f5128c221edp 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 + 77 3 0x7f5128c1e7bfp 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 4 0x7f512816f2eap paddle::framework::Executor::RunPreparedContext(paddle::framework::ExecutorPrepareContext*, paddle::framework::Scope*, bool, bool, bool) + 298 5 0x7f512816fce0p paddle::framework::Executor::Run(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool) + 128 6 0x7f5128095cddp 7 0x7f51280e0be4p pybind11::cpp_function::dispatcher(_object*, _object*, _object*) + 2596 8 0x7f516f27f199p PyCFunction_Call + 233 9 0x7f516f31a3f9p PyEval_EvalFrameEx + 33545 10 0x7f516f31c4b6p 11 0x7f516f3195b5p PyEval_EvalFrameEx + 29893 12 0x7f516f31c4b6p 13 0x7f516f31c5a8p PyEval_EvalCodeEx + 72 14 0x7f516f31c5ebp PyEval_EvalCode + 59 15 0x7f516f30fc5dp 16 0x7f516f27f179p PyCFunction_Call + 201 17 0x7f516f319dbep PyEval_EvalFrameEx + 31950 18 0x7f516f253410p _PyGen_Send + 128 19 0x7f516f318953p PyEval_EvalFrameEx + 26723 20 0x7f516f253410p _PyGen_Send + 128 21 0x7f516f318953p PyEval_EvalFrameEx + 26723 22 0x7f516f253410p _PyGen_Send + 128 23 0x7f516f319d60p PyEval_EvalFrameEx + 31856 24 0x7f516f31a1d0p PyEval_EvalFrameEx + 32992 25 0x7f516f31a1d0p PyEval_EvalFrameEx + 32992 26 0x7f516f31c4b6p 27 0x7f516f31c5a8p PyEval_EvalCodeEx + 72 28 0x7f516f25bc33p 29 0x7f516f22a33ap PyObject_Call + 106 30 0x7f516f3146eep PyEval_EvalFrameEx + 9726 31 0x7f516f31c4b6p 32 0x7f516f3195b5p PyEval_EvalFrameEx + 29893 33 0x7f516f2526bap 34 0x7f516f30daf6p 35 0x7f516f27f179p PyCFunction_Call + 201 36 0x7f516f319dbep PyEval_EvalFrameEx + 31950 37 0x7f516f31c4b6p 38 0x7f516f3195b5p PyEval_EvalFrameEx + 29893 39 0x7f516f2526bap 40 0x7f516f30daf6p 41 0x7f516f27f179p PyCFunction_Call + 201 42 0x7f516f319dbep PyEval_EvalFrameEx + 31950 43 0x7f516f31c4b6p 44 0x7f516f3195b5p PyEval_EvalFrameEx + 29893 45 0x7f516f2526bap 46 0x7f516f30daf6p 47 0x7f516f27f179p PyCFunction_Call + 201 48 0x7f516f319dbep PyEval_EvalFrameEx + 31950 49 0x7f516f31c4b6p 50 0x7f516f31c5a8p PyEval_EvalCodeEx + 72 51 0x7f516f25bb56p 52 0x7f516f22a33ap PyObject_Call + 106 53 0x7f516f3146eep PyEval_EvalFrameEx + 9726 54 0x7f516f253410p _PyGen_Send + 128 55 0x7f516f319d60p PyEval_EvalFrameEx + 31856 56 0x7f516f31a1d0p PyEval_EvalFrameEx + 32992 57 0x7f516f31c4b6p 58 0x7f516f31c5a8p PyEval_EvalCodeEx + 72 59 0x7f516f25bc33p 60 0x7f516f22a33ap PyObject_Call + 106 61 0x7f516f3146eep PyEval_EvalFrameEx + 9726 62 0x7f516f31c4b6p 63 0x7f516f31c5a8p PyEval_EvalCodeEx + 72 64 0x7f516f25bb56p 65 0x7f516f22a33ap PyObject_Call + 106 66 0x7f516f38fccap 67 0x7f516f22a33ap PyObject_Call + 106 68 0x7f516f3164c5p PyEval_EvalFrameEx + 17365 69 0x7f516f31c4b6p 70 0x7f516f31c5a8p PyEval_EvalCodeEx + 72 71 0x7f516f25bb56p 72 0x7f516f22a33ap PyObject_Call + 106 73 0x7f516f3146eep PyEval_EvalFrameEx + 9726 74 0x7f516f31a1d0p PyEval_EvalFrameEx + 32992 75 0x7f516f31a1d0p PyEval_EvalFrameEx + 32992 76 0x7f516f31a1d0p PyEval_EvalFrameEx + 32992 77 0x7f516f31a1d0p PyEval_EvalFrameEx + 32992 78 0x7f516f31a1d0p PyEval_EvalFrameEx + 32992 79 0x7f516f31c4b6p 80 0x7f516f3195b5p PyEval_EvalFrameEx + 29893 81 0x7f516f31c4b6p 82 0x7f516f31c5a8p PyEval_EvalCodeEx + 72 83 0x7f516f31c5ebp PyEval_EvalCode + 59 84 0x7f516f30fc5dp 85 0x7f516f27f179p PyCFunction_Call + 201 86 0x7f516f319dbep PyEval_EvalFrameEx + 31950 87 0x7f516f31c4b6p 88 0x7f516f3195b5p PyEval_EvalFrameEx + 29893 89 0x7f516f31c4b6p 90 0x7f516f31c5a8p PyEval_EvalCodeEx + 72 91 0x7f516f25bb56p 92 0x7f516f22a33ap PyObject_Call + 106 93 0x7f516f368ba1p 94 0x7f516f3694a5p Py_Main + 1493 95 0x400b54p main + 356 96 0x7f516e2dd830p __libc_start_main + 240 97 0x400c01p