diff options
author | Miao Wang <miaowang@google.com> | 2020-03-18 13:59:13 -0700 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2020-03-18 16:22:05 -0700 |
commit | 7a3b50af4652637f47813c9b8055c2760a31365d (patch) | |
tree | d7c71a03ec6d3fc6934b32ea72c6deb771350937 /nn/runtime/test/specs | |
parent | b581c95e52f4addd8a344168c3870f22072de766 (diff) | |
download | ml-7a3b50af4652637f47813c9b8055c2760a31365d.tar.gz |
Remove invalid local_response_norm tests
- These tests have bias of 0 which is prohibited by the spec
Bug: 73641582
Test: mm
Test: CTS test
Change-Id: Ifbeb9203464cdda53bde514add173b0563beea4b
Diffstat (limited to 'nn/runtime/test/specs')
5 files changed, 0 insertions, 116 deletions
diff --git a/nn/runtime/test/specs/V1_0/local_response_norm_float_2.mod.py b/nn/runtime/test/specs/V1_0/local_response_norm_float_2.mod.py deleted file mode 100644 index fa025bfc0..000000000 --- a/nn/runtime/test/specs/V1_0/local_response_norm_float_2.mod.py +++ /dev/null @@ -1,19 +0,0 @@ -model = Model() -i1 = Input("input", "TENSOR_FLOAT32", "{1, 1, 1, 6}") -radius = Int32Scalar("radius", 20) -bias = Float32Scalar("bias", 0.) -alpha = Float32Scalar("alpha", 1.) -beta = Float32Scalar("beta", .5) -output = Output("output", "TENSOR_FLOAT32", "{1, 1, 1, 6}") - -model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output) - -# Example 1. Input in operand 0, -input0 = {i1: # input 0 - [-1.1, .6, .7, 1.2, -.7, .1]} - -output0 = {output: # output 0 - [-.55, .3, .35, .6, -.35, .05]} - -# Instantiate an example -Example((input0, output0)) diff --git a/nn/runtime/test/specs/V1_0/local_response_norm_float_3.mod.py b/nn/runtime/test/specs/V1_0/local_response_norm_float_3.mod.py deleted file mode 100644 index e655bb90d..000000000 --- a/nn/runtime/test/specs/V1_0/local_response_norm_float_3.mod.py +++ /dev/null @@ -1,19 +0,0 @@ -model = Model() -i1 = Input("input", "TENSOR_FLOAT32", "{1, 1, 1, 6}") -radius = Int32Scalar("radius", 20) -bias = Float32Scalar("bias", 0.) -alpha = Float32Scalar("alpha", 4.) -beta = Float32Scalar("beta", .5) -output = Output("output", "TENSOR_FLOAT32", "{1, 1, 1, 6}") - -model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output) - -# Example 1. Input in operand 0, -input0 = {i1: # input 0 - [-1.1, .6, .7, 1.2, -.7, .1]} - -output0 = {output: # output 0 - [-.275, .15, .175, .3, -.175, .025]} - -# Instantiate an example -Example((input0, output0)) diff --git a/nn/runtime/test/specs/V1_1/local_response_norm_float_2_relaxed.mod.py b/nn/runtime/test/specs/V1_1/local_response_norm_float_2_relaxed.mod.py deleted file mode 100644 index 5ecc929f7..000000000 --- a/nn/runtime/test/specs/V1_1/local_response_norm_float_2_relaxed.mod.py +++ /dev/null @@ -1,36 +0,0 @@ -# -# Copyright (C) 2018 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -model = Model() -i1 = Input("input", "TENSOR_FLOAT32", "{1, 1, 1, 6}") -radius = Int32Scalar("radius", 20) -bias = Float32Scalar("bias", 0.) -alpha = Float32Scalar("alpha", 1.) -beta = Float32Scalar("beta", .5) -output = Output("output", "TENSOR_FLOAT32", "{1, 1, 1, 6}") - -model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output) -model = model.RelaxedExecution(True) - -# Example 1. Input in operand 0, -input0 = {i1: # input 0 - [-1.1, .6, .7, 1.2, -.7, .1]} - -output0 = {output: # output 0 - [-.55, .3, .35, .6, -.35, .05]} - -# Instantiate an example -Example((input0, output0)) diff --git a/nn/runtime/test/specs/V1_1/local_response_norm_float_3_relaxed.mod.py b/nn/runtime/test/specs/V1_1/local_response_norm_float_3_relaxed.mod.py deleted file mode 100644 index 38e5f4b32..000000000 --- a/nn/runtime/test/specs/V1_1/local_response_norm_float_3_relaxed.mod.py +++ /dev/null @@ -1,36 +0,0 @@ -# -# Copyright (C) 2018 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -model = Model() -i1 = Input("input", "TENSOR_FLOAT32", "{1, 1, 1, 6}") -radius = Int32Scalar("radius", 20) -bias = Float32Scalar("bias", 0.) -alpha = Float32Scalar("alpha", 4.) -beta = Float32Scalar("beta", .5) -output = Output("output", "TENSOR_FLOAT32", "{1, 1, 1, 6}") - -model = model.Operation("LOCAL_RESPONSE_NORMALIZATION", i1, radius, bias, alpha, beta).To(output) -model = model.RelaxedExecution(True) - -# Example 1. Input in operand 0, -input0 = {i1: # input 0 - [-1.1, .6, .7, 1.2, -.7, .1]} - -output0 = {output: # output 0 - [-.275, .15, .175, .3, -.175, .025]} - -# Instantiate an example -Example((input0, output0)) diff --git a/nn/runtime/test/specs/V1_2/local_response_normalization_v1_2.mod.py b/nn/runtime/test/specs/V1_2/local_response_normalization_v1_2.mod.py index 6d95849a7..ea222fc76 100644 --- a/nn/runtime/test/specs/V1_2/local_response_normalization_v1_2.mod.py +++ b/nn/runtime/test/specs/V1_2/local_response_normalization_v1_2.mod.py @@ -19,12 +19,6 @@ o = Output("op2", "TENSOR_FLOAT32", "{2, 2, 2, 6}") # output axis = Int32Scalar("axis", -1) # last axis input0 = {i: [-1.1, .6, .7, 1.2, -.7, .1] * 8} -# TEST 1: radius = 20, bias = 0.0, alpha = 1.0, beta = 0.5 -Model("axis").Operation("LOCAL_RESPONSE_NORMALIZATION", i, 20, 0.0, 1.0, 0.5, axis).To(o) -Example((input0, { - o: [-.55, .3, .35, .6, -.35, .05] * 8 - })).AddAllDimsAndAxis(i, o, axis).AddVariations("relaxed", "float16") - # TEST 2: radius = 20, bias = 9.0, alpha = 4.0, beta = 0.5 Model("axis").Operation("LOCAL_RESPONSE_NORMALIZATION", i, 20, 9.0, 4.0, 0.5, axis).To(o) Example((input0, { |