Add logging of input/output tensors of Mul_1 quicktest (#2140)
author윤현식/동작제어Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Thu, 2 Aug 2018 05:42:02 +0000 (14:42 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Thu, 2 Aug 2018 05:42:02 +0000 (14:42 +0900)
By this commit, Mul_1 quicktest logs input/output tensor values into specified log file.
The log file is used to create a new Generated File.

Related PR: #2100 (Logger),
            #2105 (#2105 used log file data of this PR to create a new generated test)

Please refer to the comment in #2100 to see how to convert quicktest to generated test.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
tools/nnapi_quickcheck/tests/mul_1.cpp
tools/nnapi_quickcheck/tests/mul_1.lst

index 2569e7c..3a4ae5c 100644 (file)
@@ -143,6 +143,8 @@ TEST(NNAPI_Quickcheck_mul_1, simple_test)
 
   param.verbose = verbose;
   param.tolerance = tolerance;
+  param.tensor_logging = 1;
+  param.log_path = "report/tensor_mul_1.log";
 
   int res = RandomTestRunner{SEED, param}.run(builder);
 
index d850f37..1d42159 100644 (file)
@@ -2,8 +2,8 @@
 #error "INT_VALUE should be defined"
 #endif // INT_VALUE
 
-// (300, 1, 4)
-INT_VALUE(LEFT_1D, 300)
+// (3, 1, 4)
+INT_VALUE(LEFT_1D, 3)
 INT_VALUE(LEFT_2D, 1)
 INT_VALUE(LEFT_3D, 4)