提交 4d34934d 编写于 作者: A Alexander Alekhin 提交者: Alexander Alekhin

gapi(simd): initialize accumulator values

original commit: 99502e99
上级 1b5c2bb3
...@@ -2228,7 +2228,7 @@ struct Net::Impl ...@@ -2228,7 +2228,7 @@ struct Net::Impl
auto ieInpNode = inputNodes[i].dynamicCast<InfEngineNgraphNode>(); auto ieInpNode = inputNodes[i].dynamicCast<InfEngineNgraphNode>();
CV_Assert(oid < ieInpNode->node->get_output_size()); CV_Assert(oid < ieInpNode->node->get_output_size());
inputNodes[i] = Ptr<BackendNode>(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid, false))); inputNodes[i] = Ptr<BackendNode>(new InfEngineNgraphNode(ieInpNode->node->get_output_as_single_output_node(oid/*, false*/)));
} }
if (layer->supportBackend(preferableBackend)) if (layer->supportBackend(preferableBackend))
......
...@@ -1831,7 +1831,7 @@ static void run_sepfilter5x5_char2short(short out[], const uchar *in[], int widt ...@@ -1831,7 +1831,7 @@ static void run_sepfilter5x5_char2short(short out[], const uchar *in[], int widt
for (; l <= length - nlanes; l += nlanes) for (; l <= length - nlanes; l += nlanes)
{ {
v_uint16 t[kxLen]; v_uint16 t[kxLen];
v_int16 sum; v_int16 sum = vx_setzero_s16();
for (int i = 0; i < kxLen; ++i) for (int i = 0; i < kxLen; ++i)
{ {
...@@ -1862,7 +1862,7 @@ static void run_sepfilter5x5_char2short(short out[], const uchar *in[], int widt ...@@ -1862,7 +1862,7 @@ static void run_sepfilter5x5_char2short(short out[], const uchar *in[], int widt
for (; l <= length - nlanes; l += nlanes) for (; l <= length - nlanes; l += nlanes)
{ {
v_int16 s[buffSize]; v_int16 s[buffSize];
v_int16 sum; v_int16 sum = vx_setzero_s16();
for (int i = 0; i < kyLen; ++i) for (int i = 0; i < kyLen; ++i)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册