aboutsummaryrefslogtreecommitdiff
path: root/verif/generator/tosa_verif_build_tests.py
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-13 17:48:09 +0100
committerEric Kunze <eric.kunze@arm.com>2022-08-11 16:02:15 -0700
commita0e03f3f9a44d79367e2624f571009e4657c775a (patch)
tree60bff664a080831e0376b1fde12bad344b9008d1 /verif/generator/tosa_verif_build_tests.py
parentf732609a51630c98bc3f448937988fbcf20dc854 (diff)
downloadreference_model-a0e03f3f9a44d79367e2624f571009e4657c775a.tar.gz
Update RESIZE operator in test generator for spec updates
* Add common screen aspect ratios with borders to random pool of tests * Add up/downscaling to random pool Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Iee8e3f5ed6bd5c941816474df20a7fd433646d6b Signed-off-by: James Ward <james.ward@arm.com>
Diffstat (limited to 'verif/generator/tosa_verif_build_tests.py')
-rw-r--r--verif/generator/tosa_verif_build_tests.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/verif/generator/tosa_verif_build_tests.py b/verif/generator/tosa_verif_build_tests.py
index 69322cc..6ee873f 100644
--- a/verif/generator/tosa_verif_build_tests.py
+++ b/verif/generator/tosa_verif_build_tests.py
@@ -123,6 +123,14 @@ def parseArgs():
help="Number of random permutations for a given shape/rank for randomly-sampled parameter spaces",
)
+ parser.add_argument(
+ "--max-resize-output-dim",
+ dest="max_resize_output_dim",
+ default=1000,
+ type=int,
+ help="Upper limit on width and height output dimensions for `resize` op. Default: 1000",
+ )
+
# Targetting a specific shape/rank/dtype
parser.add_argument(
"--target-shape",
@@ -212,12 +220,11 @@ def main():
for opName, testStr, dtype, error, shapeList, testArgs in testList:
# Check for and skip duplicate tests
if testStr in testStrings:
+ print(f"Skipping duplicate test: {testStr}")
continue
else:
testStrings.append(testStr)
- if args.verbose:
- print(testStr)
results.append(
ttg.serializeTest(opName, testStr, dtype, error, shapeList, testArgs)
)