diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2024-01-25 12:53:21 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2024-01-30 16:11:26 +0000 |
commit | fc4bde92120567a98189f95cfe90bb1699d25809 (patch) | |
tree | 48ab320c288440816734fc771a817257f3a229f9 /verif/generator/tosa_arg_gen.py | |
parent | 95a6710ffb8cadcb8658a967ab29cac1bffad930 (diff) | |
download | reference_model-fc4bde92120567a98189f95cfe90bb1699d25809.tar.gz |
Fix up shape operator test errors
Update serialization_lib to store SHAPE as INT64.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ie589cd6670dc79b77df981c81cd7c27b982f20fa
Diffstat (limited to 'verif/generator/tosa_arg_gen.py')
-rw-r--r-- | verif/generator/tosa_arg_gen.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/verif/generator/tosa_arg_gen.py b/verif/generator/tosa_arg_gen.py index 91d2d62..386e243 100644 --- a/verif/generator/tosa_arg_gen.py +++ b/verif/generator/tosa_arg_gen.py @@ -622,28 +622,6 @@ class TosaTensorGen: return new_shapeList - @staticmethod - def tgShape(testGen, opName, rank, error_name=None): - pl, const = opName["operands"] - shape = [rank] - - # Constrict the overall size of the shape when creating ERROR_IF tests - if error_name: - shape = TosaErrorIfArgGen.eiRestrictDimensions(shape) - - shape_list = [] - for i in range(pl + const): - shape_list.append(shape.copy()) - - # Generates an input rank mismatch for operators with more than one input - if error_name == ErrorIf.RankMismatch: - if rank == 1 and i != 1: - shape = testGen.makeShape(rank + testGen.rng.choice([1, 2, 3])) - elif i != 1: - shape = testGen.makeShape(rank + testGen.rng.choice([-1, 1])) - - return shape_list - class TosaTensorValuesGen: """Tensor Value generators create the random data for each tensor in each test.""" |