diff options
author | Jerry Ge <jerry.ge@arm.com> | 2023-03-08 17:50:49 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-03-08 21:33:16 +0000 |
commit | c937609bc5901252d757952c117584b5d751a337 (patch) | |
tree | 805d4cf9795b01c492c59b64bc02f266d8b7636d /verif | |
parent | 2eea5bf8b213ce5f7d335cc45686a80cac119cc2 (diff) | |
download | reference_model-c937609bc5901252d757952c117584b5d751a337.tar.gz |
Prevent generating test case when align_corners and half_pixel are both true in nearest mode
Note:
- align_corners and half_pixel can both be true in nearest mode for tfl
but not tf
- this is inconsistent between tf and tfl
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: Ib396f994874904e017e0d696f70370bd51d60161
Diffstat (limited to 'verif')
-rw-r--r-- | verif/frameworks/arg_gen.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/verif/frameworks/arg_gen.py b/verif/frameworks/arg_gen.py index 8604f0b..5de995b 100644 --- a/verif/frameworks/arg_gen.py +++ b/verif/frameworks/arg_gen.py @@ -593,11 +593,7 @@ class ArgGen: for align_corners in [True, False]: for half_pixel in [True, False]: # If half_pixel_centers is True, align_corners must be False. - if ( - (mode == "bilinear") - and (align_corners is True) - and (half_pixel is True) - ): + if (align_corners is True) and (half_pixel is True): continue for i in range(1, 4): |