From 4984d6b58726b94aaad75db5d3f04b885086575a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=82=A8=EA=B6=81=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84?= =?utf8?q?=EC=9E=90?= Date: Mon, 30 Jul 2018 17:03:06 +0900 Subject: [PATCH] [neurun] Update Inputcount Restriction (#2108) Update ANEURALNETWORKS_CONV_2D explicit inputCount from 9 to 10 Update ANEURALNETWORKS_MAX_POOL_2D explicit inputCount from 9 to 10 Update ANEURALNETWORKS_AVERAGE_POOL_2D explicit inputCount from 9 to 10 Signed-off-by: Seok NamKoong --- runtimes/neurun/src/model.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/runtimes/neurun/src/model.cc b/runtimes/neurun/src/model.cc index 891584e..e6509d1 100644 --- a/runtimes/neurun/src/model.cc +++ b/runtimes/neurun/src/model.cc @@ -77,10 +77,10 @@ int ANeuralNetworksModel_addOperation(ANeuralNetworksModel *model, { case ANEURALNETWORKS_CONV_2D: { - // inputCount is either 7 or 9 acccording to NN API specification. + // inputCount is either 7 or 10 acccording to NN API specification. // - Padding is implicit when inputCount is 7 - // - Padding is explicit when inputCount is 9 - assert(inputCount == 7 || inputCount == 9); + // - Padding is explicit when inputCount is 10 + assert(inputCount == 7 || inputCount == 10); assert(outputCount == 1); if (inputCount == 7) @@ -102,10 +102,10 @@ int ANeuralNetworksModel_addOperation(ANeuralNetworksModel *model, } case ANEURALNETWORKS_MAX_POOL_2D: { - // inputCount is either 7 or 9 acccording to NN API specification. + // inputCount is either 7 or 10 acccording to NN API specification. // - Padding is implicit when inputCount is 7 - // - Padding is explicit when inputCount is 9 - assert(inputCount == 7 || inputCount == 9); + // - Padding is explicit when inputCount is 10 + assert(inputCount == 7 || inputCount == 10); assert(outputCount == 1); if (inputCount == 7) @@ -127,10 +127,10 @@ int ANeuralNetworksModel_addOperation(ANeuralNetworksModel *model, } case ANEURALNETWORKS_AVERAGE_POOL_2D: { - // inputCount is either 7 or 9 acccording to NN API specification. + // inputCount is either 7 or 10 acccording to NN API specification. // - Padding is implicit when inputCount is 7 - // - Padding is explicit when inputCount is 9 - assert(inputCount == 7 || inputCount == 9); + // - Padding is explicit when inputCount is 10 + assert(inputCount == 7 || inputCount == 10); assert(outputCount == 1); if (inputCount == 7) -- 2.7.4