diff options
Diffstat (limited to 'verif/conformance')
-rw-r--r-- | verif/conformance/test_select.py | 7 | ||||
-rw-r--r-- | verif/conformance/tosa_main_profile_ops_info.json | 68 |
2 files changed, 75 insertions, 0 deletions
diff --git a/verif/conformance/test_select.py b/verif/conformance/test_select.py index 817d0b6..6161523 100644 --- a/verif/conformance/test_select.py +++ b/verif/conformance/test_select.py @@ -669,6 +669,13 @@ class ReduceMinOperator(Operator): param_names = ["shape", "type", "axis"] +class ReduceProductOperator(Operator): + """Test selector for the REDUCE_PRODUCT operator.""" + + name = "reduce_product" + param_names = ["shape", "type", "axis"] + + class ReduceSumOperator(Operator): """Test selector for the REDUCE_SUM operator.""" diff --git a/verif/conformance/tosa_main_profile_ops_info.json b/verif/conformance/tosa_main_profile_ops_info.json index f31fa71..c45623f 100644 --- a/verif/conformance/tosa_main_profile_ops_info.json +++ b/verif/conformance/tosa_main_profile_ops_info.json @@ -1801,6 +1801,74 @@ "tosa-mi" ] }, + "reduce_product": { + "group": "reduction", + "generator_args": [ + [ + "--target-dtype", + "fp32", + "--target-dtype", + "fp16", + "--target-dtype", + "bf16", + "--fp-values-range", + "-2.0,2.0", + "--tensor-dim-range", + "1,34" + ], + [ + "--target-dtype", + "fp16", + "--target-shape", + "2,65527,3,1", + "--target-shape", + "1,3,2,65541" + ] + ], + "params": {}, + "permutes": [ + "shape", + "type", + "axis" + ], + "profile": [ + "tosa-mi" + ] + }, + "reduce_sum": { + "group": "reduction", + "generator_args": [ + [ + "--target-dtype", + "fp32", + "--target-dtype", + "fp16", + "--target-dtype", + "bf16", + "--fp-values-range", + "-2.0,2.0", + "--tensor-dim-range", + "1,37" + ], + [ + "--target-dtype", + "bf16", + "--target-shape", + "1,3,65529,1", + "--target-shape", + "1,65537,1,1" + ] + ], + "params": {}, + "permutes": [ + "shape", + "type", + "axis" + ], + "profile": [ + "tosa-mi" + ] + }, "resize": { "group": "image", "generator_args": [ |