From: Shubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 Date: Mon, 10 Dec 2018 01:44:09 +0000 (+0530) Subject: Add gtest to test quant8 datatype for NotEqual Op (#3757) X-Git-Tag: 0.3~151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68e4656e5b3bdb2f38bfa01b66164223f4e50592;p=platform%2Fcore%2Fml%2Fnnfw.git Add gtest to test quant8 datatype for NotEqual Op (#3757) This patch will add gtest to test quant8 datatype for NotEqual Op Signed-off-by: shubham --- diff --git a/runtimes/tests/neural_networks_test/runtime_run_android_nn_test.skip.armv7l-linux b/runtimes/tests/neural_networks_test/runtime_run_android_nn_test.skip.armv7l-linux index 056ed4c..f4203b6 100644 --- a/runtimes/tests/neural_networks_test/runtime_run_android_nn_test.skip.armv7l-linux +++ b/runtimes/tests/neural_networks_test/runtime_run_android_nn_test.skip.armv7l-linux @@ -11,6 +11,7 @@ GeneratedTests.lstm3_state2 GeneratedTests.lstm3_state3 GeneratedTests.lstm_state GeneratedTests.lstm_state2 +GeneratedTests.notequal* GeneratedTests.prelu_ex* GeneratedTests.svdf GeneratedTests.svdf2 diff --git a/runtimes/tests/neural_networks_test/specs/Ex/notequal_ex_quant8.mod.py b/runtimes/tests/neural_networks_test/specs/Ex/notequal_ex_quant8.mod.py new file mode 100644 index 0000000..d5115a6 --- /dev/null +++ b/runtimes/tests/neural_networks_test/specs/Ex/notequal_ex_quant8.mod.py @@ -0,0 +1,18 @@ +# model +model = Model() +i1 = Input("op1", "TENSOR_QUANT8_ASYMM", "{3}, 1.f, 0") # a vector of input +i2 = Input("op2", "TENSOR_QUANT8_ASYMM", "{3}, 1.f, 0") # a vector of input +i3 = Output("op3", "TENSOR_QUANT8_ASYMM", "{3}, 1.f, 0") # a vector of output +model = model.Operation("NOT_EQUAL_EX", i1, i2).To(i3) + +# Example 1. Input in operand 0, +input0 = {i1: # input 0 + [2, 3, 0], + i2: # input 1 + [2, 9, 0]} + +output0 = {i3: # output 0 + [0, 255, 0]} + +# Instantiate an example +Example((input0, output0))