Enable nnAssert in Utils.h
authorsjsujinkim <sjsujin.kim@samsung.com>
Fri, 23 Mar 2018 04:16:56 +0000 (13:16 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Fri, 23 Mar 2018 04:25:49 +0000 (13:25 +0900)
This commit enables nnAssert in Utils.h

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
src/runtime/ref/nn/common/include/Utils.h

index 4889fe2..488f0a2 100644 (file)
@@ -73,7 +73,7 @@ enum VLogFlags {
 
 extern int vLogMask;
 void initVLogMask();
-
+#endif // REF-ANN
 // Assert macro, as Android does not generally support assert.
 #define nnAssert(v)                                                                            \
     do {                                                                                       \
@@ -83,7 +83,7 @@ void initVLogMask();
             abort();                                                                           \
         }                                                                                      \
     } while (0)
-
+#if 0 // REF-ANN
 // Returns the amount of space needed to store a value of the specified
 // dimensions and type.
 uint32_t sizeOfData(OperandType type, const std::vector<uint32_t>& dimensions);