ssd 模型前置lstm报错
Created by: ChuRao
img = fluid.layers.data(name = 'imgs',shape=image_shape,lod_level=1)
locs, confs, box, box_var = mobilenet_ssd.mobile_net(num_classes, img, image_shape)
input_forward_proj = fluid.layers.fc(input=[locs, confs
#, box, box_var
],
size=hidden_size * 4,
bias_attr=False)
/opt/conda/envs/py27-paddle0.11/lib/python2.7/site-packages/paddle/fluid/executor.pyc in run(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache)
441
442 self._feed_data(program, feed, feed_var_name, scope)
--> 443 self.executor.run(program.desc, scope, 0, True, True)
444 outs = self._fetch_data(fetch_list, fetch_var_name, scope)
445 if return_numpy:
EnforceNotMet: enforce lods.size() == 1UL failed, 0 != 1
Only support one level sequence now. at [/paddle/paddle/fluid/operators/math/sequence2batch.h:79]
PaddlePaddle Call Stacks:
0 0x7f328c591736p paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 486
1 0x7f328d13f315p paddle::operators::LSTMKernel<paddle::platform::CUDADeviceContext, float>::Compute(paddle::framework::ExecutionContext const&) const + 5749
2 0x7f328d3c944ep 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 + 1326
3 0x7f328d3c66edp 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&) + 205
4 0x7f328c62d4afp paddle::framework::Executor::RunPreparedContext(paddle::framework::ExecutorPrepareContext*, paddle::framework::Scope*, bool, bool, bool) + 255
5 0x7f328c62e500p paddle::framework::Executor::Run(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool) + 128
6 0x7f328c5a90fbp void pybind11::cpp_function::initialize<pybind11::cpp_function::initialize<void, paddle::framework::Executor, paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool, pybind11::name, pybind11::is_method, pybind11::sibling>(void (paddle::framework::Executor::*)(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&)::{lambda(paddle::framework::Executor*, paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool)#1}, void, paddle::framework::Executor*, paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::cpp_function::initialize<void, paddle::framework::Executor, paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool, pybind11::name, pybind11::is_method, pybind11::sibling>(void (paddle::framework::Executor::*)(paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&)::{lambda(paddle::framework::Executor*, paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool)#1}&&, void (*)(paddle::framework::Executor*, paddle::framework::ProgramDesc const&, paddle::framework::Scope*, int, bool, bool), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&)::{lambda(pybind11::detail::function_call&)#3}::_FUN(pybind11::detail::function_call) + 555
7 0x7f328c5a1604p pybind11::cpp_function::dispatcher(_object*, _object*, _object*) + 2596
8 0x7f32f1e8c9d2p PyEval_EvalFrameEx + 29874
9 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
10 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
11 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
12 0x7f32f1e8ee22p PyEval_EvalCode + 50
13 0x7f32f1e8e487p PyEval_EvalFrameEx + 36711
14 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
15 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
16 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
17 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
18 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
19 0x7f32f1e05405p
20 0x7f32f1dd3023p PyObject_Call + 67
21 0x7f32f1e88ab7p PyEval_EvalFrameEx + 13719
22 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
23 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
24 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
25 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
26 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
27 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
28 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
29 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
30 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
31 0x7f32f1e05405p
32 0x7f32f1dd3023p PyObject_Call + 67
33 0x7f32f1e88ab7p PyEval_EvalFrameEx + 13719
34 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
35 0x7f32f1e05405p
36 0x7f32f1dd3023p PyObject_Call + 67
37 0x7f32f1e88ab7p PyEval_EvalFrameEx + 13719
38 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
39 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
40 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
41 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
42 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
43 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
44 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
45 0x7f32f1e05405p
46 0x7f32f1dd3023p PyObject_Call + 67
47 0x7f32f1e88ab7p PyEval_EvalFrameEx + 13719
48 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
49 0x7f32f1e05330p
50 0x7f32f1dd3023p PyObject_Call + 67
51 0x7f32eebd4abap
52 0x7f32f1dd3023p PyObject_Call + 67
53 0x7f32f1e88fc6p PyEval_EvalFrameEx + 15014
54 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
55 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
56 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
57 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
58 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
59 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
60 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
61 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
62 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
63 0x7f32f1e8ee22p PyEval_EvalCode + 50
64 0x7f32f1e8e487p PyEval_EvalFrameEx + 36711
65 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
66 0x7f32f1e8be72p PyEval_EvalFrameEx + 26962
67 0x7f32f1e8ecedp PyEval_EvalCodeEx + 2061
68 0x7f32f1e05330p
69 0x7f32f1dd3023p PyObject_Call + 67
70 0x7f32f1ed1250p
71 0x7f32f1ed1a04p Py_Main + 1604
72 0x7f32f10a8830p __libc_start_main + 240
73 0x4007b1p