[neurun] Remove useless assertion (#2279)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 13 Aug 2018 11:32:20 +0000 (20:32 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 13 Aug 2018 11:32:20 +0000 (20:32 +0900)
Remove useless assertion
It makes validation check fail on debug build

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/src/frontend/model.cc

index 3900570..fd3d4aa 100644 (file)
@@ -49,12 +49,6 @@ int ANeuralNetworksModel_addOperand(ANeuralNetworksModel *model,
     return ANEURALNETWORKS_BAD_STATE;
   }
 
-  // ASSUME A tensor operand should consists of fp32 or int32 values.
-  // NOTE We do not care about scalar operands.
-  assert((type->dimensionCount == 0) || (type->type == ANEURALNETWORKS_TENSOR_FLOAT32 ||
-                                         type->type == ANEURALNETWORKS_TENSOR_INT32 ||
-                                         type->type == ANEURALNETWORKS_TENSOR_QUANT8_ASYMM));
-
   // scale and zeroPoint should be zero for scalars and non-fixed point tensors
   // Quantized:
   //  scale: a 32 bit floating point value greater than zero