From 18729faa16ef1f9331eb6179dbb1882a8a7e9d54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?PRAVEEN=20DORESWAMY=20NAIDU/SRI-Bangalore-System=20SW/=2E/?= =?utf8?q?=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 19 Apr 2018 08:59:35 +0000 Subject: [PATCH] Enable depthconv and reshape tests in config (#788) Enable the depthwiseconv and reshape in test config files for the operations to be tested in test_run --- src/runtime/ref/nn/common/CpuExecutor.cpp | 5 +---- tests/framework/tests/depthconv1/config.sh | 1 - tests/framework/tests/depthconv2/config.sh | 1 - tests/framework/tests/reshape1/config.sh | 1 - tests/framework/tests/reshape2/config.sh | 1 - 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/runtime/ref/nn/common/CpuExecutor.cpp b/src/runtime/ref/nn/common/CpuExecutor.cpp index bb80d7c..aa916df 100755 --- a/src/runtime/ref/nn/common/CpuExecutor.cpp +++ b/src/runtime/ref/nn/common/CpuExecutor.cpp @@ -479,9 +479,7 @@ int CpuExecutor::executeOperation(const Operation& operation) { padding_top, padding_bottom, stride_width, stride_height, &outShape) && - setInfoAndAllocateIfNeeded(&output, outShape); -#if 0 // TODO depthwiseConvFloat32 from NNFW_KERNELS - && + setInfoAndAllocateIfNeeded(&output, outShape) && depthwiseConvFloat32(reinterpret_cast(input.buffer), input.shape(), reinterpret_cast(filter.buffer), @@ -494,7 +492,6 @@ int CpuExecutor::executeOperation(const Operation& operation) { depth_multiplier, activation, reinterpret_cast(output.buffer), outShape); -#endif } else if (input.type == OperandType::TENSOR_QUANT8_ASYMM) { success = depthwiseConvPrepare(input.shape(), filter.shape(), bias.shape(), padding_left, padding_right, diff --git a/tests/framework/tests/depthconv1/config.sh b/tests/framework/tests/depthconv1/config.sh index 70c889f..0f1c606 100644 --- a/tests/framework/tests/depthconv1/config.sh +++ b/tests/framework/tests/depthconv1/config.sh @@ -1,4 +1,3 @@ MODELFILE_SERVER="http://npuarchive.mooo.com/archive/nnfw/nn_framework_test" MODELFILE_NAME="depth_conv_test1.tflite" MODELFILE_MD5SUM="759c4209bbbd852627560a2342da3e53" -STATUS="disabled" diff --git a/tests/framework/tests/depthconv2/config.sh b/tests/framework/tests/depthconv2/config.sh index 8baf8c0..d5efaf4 100644 --- a/tests/framework/tests/depthconv2/config.sh +++ b/tests/framework/tests/depthconv2/config.sh @@ -1,4 +1,3 @@ MODELFILE_SERVER="http://npuarchive.mooo.com/archive/nnfw/nn_framework_test" MODELFILE_NAME="depth_conv_test2.tflite" MODELFILE_MD5SUM="9952066a8c67c2f99bbf7752255f4b7d" -STATUS="disabled" diff --git a/tests/framework/tests/reshape1/config.sh b/tests/framework/tests/reshape1/config.sh index c73b006..21af876 100644 --- a/tests/framework/tests/reshape1/config.sh +++ b/tests/framework/tests/reshape1/config.sh @@ -1,4 +1,3 @@ MODELFILE_SERVER="http://npuarchive.mooo.com/archive/nnfw/nn_framework_test" MODELFILE_NAME="reshape_test1.tflite" MODELFILE_MD5SUM="5d4c70e0fafb8ed43a9f1171533002bb" -STATUS="disabled" diff --git a/tests/framework/tests/reshape2/config.sh b/tests/framework/tests/reshape2/config.sh index 97cdfb1..0247d5a 100644 --- a/tests/framework/tests/reshape2/config.sh +++ b/tests/framework/tests/reshape2/config.sh @@ -1,4 +1,3 @@ MODELFILE_SERVER="http://npuarchive.mooo.com/archive/nnfw/nn_framework_test" MODELFILE_NAME="reshape_test2.tflite" MODELFILE_MD5SUM="02f258fd953a5cebc3319cd67e772669" -STATUS="disabled" -- 2.7.4