[neurun] Fix typo in model.cc (#2351)
author남궁석/동작제어Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com>
Mon, 20 Aug 2018 02:51:02 +0000 (11:51 +0900)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 20 Aug 2018 02:51:02 +0000 (11:51 +0900)
Fix typo for `or` operation in `src/frontend/model.cc`

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
runtimes/neurun/src/frontend/model.cc

index 624c011..1e00b5f 100644 (file)
@@ -72,7 +72,7 @@ int ANeuralNetworksModel_addOperand(ANeuralNetworksModel *model,
 
   // dimensionCount should be zero for scalars
   if ((type->dimensionCount != 0) &&
-      ((type->type == ANEURALNETWORKS_FLOAT32) | (type->type == ANEURALNETWORKS_INT32) ||
+      ((type->type == ANEURALNETWORKS_FLOAT32) || (type->type == ANEURALNETWORKS_INT32) ||
        (type->type == ANEURALNETWORKS_UINT32)))
   {
     return ANEURALNETWORKS_BAD_DATA;