From c937609bc5901252d757952c117584b5d751a337 Mon Sep 17 00:00:00 2001 From: Jerry Ge Date: Wed, 8 Mar 2023 17:50:49 +0000 Subject: 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 Change-Id: Ib396f994874904e017e0d696f70370bd51d60161 --- verif/frameworks/arg_gen.py | 6 +----- 1 file changed, 1 insertion(+), 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): -- cgit v1.2.1