From a0e03f3f9a44d79367e2624f571009e4657c775a Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 13 Jun 2022 17:48:09 +0100 Subject: 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 Change-Id: Iee8e3f5ed6bd5c941816474df20a7fd433646d6b Signed-off-by: James Ward --- verif/generator/tosa_verif_build_tests.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'verif/generator/tosa_verif_build_tests.py') 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) ) -- cgit v1.2.1