From 6ef04c2e79ef7ffc37b19b51bd8c45fd4dd6af31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=B5=9C=ED=98=95=EA=B7=9C/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Senior=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 26 Apr 2018 15:39:52 +0900 Subject: [PATCH] Revert "Add assertion to check divide by zero (#892)" (#924) This reverts commit 8abe4dba8ff6b5209561dc728b980fc7e8def816. This was made for fixing the Coverity warning (#891) but it does not work. We decide this warning to be a false alarm. --- src/runtime/ref/nn/common/operations/Activation.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/runtime/ref/nn/common/operations/Activation.cpp b/src/runtime/ref/nn/common/operations/Activation.cpp index c54e0b7..6be48ac 100644 --- a/src/runtime/ref/nn/common/operations/Activation.cpp +++ b/src/runtime/ref/nn/common/operations/Activation.cpp @@ -78,7 +78,6 @@ bool softmaxFloat32(const float* inputData, const Shape& inputShape, Dims<4> dim; if (getNumberOfDimensions(inputShape) == 2) { uint32_t batch_size = getSizeOfDimension(inputShape, 0); - assert(batch_size != 0); uint32_t input_size = getNumberOfElements(inputShape) / batch_size; Shape shapeIn4D; @@ -169,7 +168,6 @@ bool softmaxQuant8(const uint8_t* inputData, const Shape& inputShape, Dims<4> dim; if (getNumberOfDimensions(inputShape) == 2) { uint32_t batch_size = getSizeOfDimension(inputShape, 0); - assert(batch_size != 0); uint32_t input_size = getNumberOfElements(inputShape) / batch_size; Shape shapeIn4D; -- 2.7.4