执行face_detection时出现“EnforceNotMet: ptr_ should not be null”错误
Created by: duanlin0505
环境:v100+paddle1.1+cuda9+cudnn7
[root@gpu.baidu.com face_detection]# fluid -u train.py --batch_size=1 --pretrained_model=vgg_ilsvrc_16_fc_reduced
----------- Configuration Arguments -----------
batch_size: 1
data_dir: data
epoc_num: 160
learning_rate: 0.001
mean_BGR: 104., 117., 123.
model_save_dir: output
parallel: True
pretrained_model: vgg_ilsvrc_16_fc_reduced
resize_h: 640
resize_w: 640
use_gpu: True
use_pyramidbox: True
with_mem_opt: True
------------------------------------------------
terminate called after throwing an instance of 'paddle::platform::EnforceNotMet'
what(): invalid resource handle at [/paddle/paddle/fluid/framework/details/op_handle_base.cc:37]
PaddlePaddle Call Stacks:
0 0x7f26547c8d06p paddle::platform::EnforceNotMet::EnforceNotMet(std::__exception_ptr::exception_ptr, char const*, int) + 486
1 0x7f2655b07fa2p paddle::framework::details::OpHandleBase::~OpHandleBase() + 402
2 0x7f2655ae19e1p paddle::framework::details::FetchOpHandle::~FetchOpHandle() + 17
3 0x7f2655aa3a4ep std::vector<std::unique_ptr<paddle::framework::details::FetchOpHandle, std::default_delete<paddle::framework::details::FetchOpHandle> >, std::allocator<std::unique_ptr<paddle::framework::details::FetchOpHandle, std::default_delete<paddle::framework::details::FetchOpHandle> > > >::~vector() + 46
4 0x7f2655aa2b46p paddle::framework::details::ThreadedSSAGraphExecutor::Run(std::vector<std::string, std::allocator<std::string> > const&) + 4390
5 0x7f2655aa6b37p paddle::framework::details::ScopeBufferedSSAGraphExecutor::Run(std::vector<std::string, std::allocator<std::string> > const&) + 391
6 0x7f26548a90b9p paddle::framework::ParallelExecutor::Run(std::vector<std::string, std::allocator<std::string> > const&, std::string const&) + 489
7 0x7f26547bd540p
8 0x7f26547df414p pybind11::cpp_function::dispatcher(_object*, _object*, _object*) + 2596
9 0x7f26dcedebb8p PyEval_EvalFrameEx + 25016
10 0x7f26dcee20bdp PyEval_EvalCodeEx + 2061
11 0x7f26dcedf345p PyEval_EvalFrameEx + 26949
12 0x7f26dcee20bdp PyEval_EvalCodeEx + 2061
13 0x7f26dcedf345p PyEval_EvalFrameEx + 26949
14 0x7f26dcee20bdp PyEval_EvalCodeEx + 2061
15 0x7f26dcee21f2p PyEval_EvalCode + 50
16 0x7f26dcf0af42p PyRun_FileExFlags + 146
17 0x7f26dcf0c2d9p PyRun_SimpleFileExFlags + 217
18 0x7f26dcf2200dp Py_Main + 3149
19 0x7f26dc11fbd5p __libc_start_main + 245
20 0x4007a1p
*** Aborted at 1542616343 (unix time) try "date -d @1542616343" if you are using GNU date ***
PC: @ 0x0 (unknown)
*** SIGABRT (@0x5284a) received by PID 337994 (TID 0x7f26dd40e700) from PID 337994; stack trace: ***
@ 0x7f26dcbc5160 (unknown)
@ 0x7f26dc1333f7 __GI_raise
@ 0x7f26dc1347d8 __GI_abort
@ 0x7f26ce656c65 __gnu_cxx::__verbose_terminate_handler()
@ 0x7f26ce654e06 __cxxabiv1::__terminate()
@ 0x7f26ce653ec9 __cxa_call_terminate
@ 0x7f26ce654a7a __gxx_personality_v0
@ 0x7f26d0d84853 _Unwind_RaiseException_Phase2
@ 0x7f26d0d84beb _Unwind_RaiseException
@ 0x7f26ce655045 __cxa_throw
@ 0x7f2655b07fc0 paddle::framework::details::OpHandleBase::~OpHandleBase()
@ 0x7f2655ae19e1 paddle::framework::details::FetchOpHandle::~FetchOpHandle()
@ 0x7f2655aa3a4e std::vector<>::~vector()
@ 0x7f2655aa2b46 paddle::framework::details::ThreadedSSAGraphExecutor::Run()
@ 0x7f2655aa6b37 paddle::framework::details::ScopeBufferedSSAGraphExecutor::Run()
@ 0x7f26548a90b9 paddle::framework::ParallelExecutor::Run()
@ 0x7f26547bd540 _ZZN8pybind1112cpp_function10initializeIZN6paddle6pybindL13pybind11_initEvEUlRNS2_9framework16ParallelExecutorERKSt6vectorISsSaISsEERKSsE102_vIS6_SB_SD_EINS_4nameENS_9is_methodENS_7siblingEEEEvOT_PFT0_DpT1_EDpRKT2_ENUlRNS_6detail13function_callEE1_4_FUNESV_
@ 0x7f26547df414 pybind11::cpp_function::dispatcher()
@ 0x7f26dcedebb8 PyEval_EvalFrameEx
@ 0x7f26dcee20bd PyEval_EvalCodeEx
@ 0x7f26dcedf345 PyEval_EvalFrameEx
@ 0x7f26dcee20bd PyEval_EvalCodeEx
@ 0x7f26dcedf345 PyEval_EvalFrameEx
@ 0x7f26dcee20bd PyEval_EvalCodeEx
@ 0x7f26dcee21f2 PyEval_EvalCode
@ 0x7f26dcf0af42 PyRun_FileExFlags
@ 0x7f26dcf0c2d9 PyRun_SimpleFileExFlags
@ 0x7f26dcf2200d Py_Main
@ 0x7f26dc11fbd5 __libc_start_main
@ 0x4007a1 (unknown)
@ 0x0 (unknown)
Aborted