summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestValidateOperations.cpp
diff options
context:
space:
mode:
authorSlava Shklyaev <slavash@google.com>2020-01-09 15:16:50 +0000
committerSlava Shklyaev <slavash@google.com>2020-01-13 15:44:27 +0000
commitb88bb3e3f225d5262499f5f072fcfb20d0e59951 (patch)
tree39041e42a817946d94c02a2d84394a4deb8cc337 /nn/runtime/test/TestValidateOperations.cpp
parentc01d2a24ac6de9e9db8a503bb54d37abc5feafd7 (diff)
downloadml-b88bb3e3f225d5262499f5f072fcfb20d0e59951.tar.gz
Add TENSOR_INT32 support for DIV
Bug: 142318767 Bug: 136735929 Test: NNT_static Change-Id: I105222e43802bc58562bb904bd9e9b306eb3697c
Diffstat (limited to 'nn/runtime/test/TestValidateOperations.cpp')
-rw-r--r--nn/runtime/test/TestValidateOperations.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/nn/runtime/test/TestValidateOperations.cpp b/nn/runtime/test/TestValidateOperations.cpp
index 37bc5f95c..99976377c 100644
--- a/nn/runtime/test/TestValidateOperations.cpp
+++ b/nn/runtime/test/TestValidateOperations.cpp
@@ -698,6 +698,10 @@ TEST(OperationValidationTest, DIV_float32) {
simpleMathOpTest(ANEURALNETWORKS_DIV, ANEURALNETWORKS_TENSOR_FLOAT32);
}
+TEST(OperationValidationTest, DIV_int32) {
+ simpleMathOpTest(ANEURALNETWORKS_DIV, ANEURALNETWORKS_TENSOR_INT32);
+}
+
TEST(OperationValidationTest, MUL_quant8_bad_output_scale) {
uint32_t inputDimensions[4] = {2, 2, 2, 2};
ANeuralNetworksOperandType input1 =