Commit c43498c6 authored by Li Peng's avatar Li Peng

check vector emptiness before access it

Signed-off-by: 's avatarLi Peng <peng.li@intel.com>
parent 389fa5d3
......@@ -1265,12 +1265,15 @@ struct Net::Impl
ld.outputBlobsWrappers = layers[lpNext.lid].outputBlobsWrappers;
if ( preferableTarget == DNN_TARGET_OPENCL )
{
if ( !activData->consumers.empty() )
{
nextData = &layers[activData->consumers[0].lid];
lpNext = LayerPin(activData->consumers[0].lid, 0);
}
}
}
}
// fuse convlution layer followed by eltwise + relu
if ( preferableTarget == DNN_TARGET_OPENCL )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment