|
|
|
@ -178,9 +178,9 @@ class TestBilinearInterpCase2(TestBilinearInterpOp):
|
|
|
|
|
class TestBilinearInterpCase3(TestBilinearInterpOp):
|
|
|
|
|
def init_test_case(self):
|
|
|
|
|
self.interp_method = 'bilinear'
|
|
|
|
|
self.input_shape = [1, 1, 128, 64]
|
|
|
|
|
self.input_shape = [1, 1, 32, 64]
|
|
|
|
|
self.out_h = 64
|
|
|
|
|
self.out_w = 128
|
|
|
|
|
self.out_w = 32
|
|
|
|
|
self.scale = 0.
|
|
|
|
|
self.align_corners = True
|
|
|
|
|
self.align_mode = 1
|
|
|
|
@ -213,11 +213,11 @@ class TestBilinearInterpCase5(TestBilinearInterpOp):
|
|
|
|
|
class TestBilinearInterpCase6(TestBilinearInterpOp):
|
|
|
|
|
def init_test_case(self):
|
|
|
|
|
self.interp_method = 'bilinear'
|
|
|
|
|
self.input_shape = [1, 1, 128, 64]
|
|
|
|
|
self.input_shape = [1, 1, 32, 64]
|
|
|
|
|
self.out_h = 64
|
|
|
|
|
self.out_w = 128
|
|
|
|
|
self.out_w = 32
|
|
|
|
|
self.scale = 0.
|
|
|
|
|
self.out_size = np.array([65, 129]).astype("int32")
|
|
|
|
|
self.out_size = np.array([65, 33]).astype("int32")
|
|
|
|
|
self.align_corners = True
|
|
|
|
|
self.align_mode = 1
|
|
|
|
|
|
|
|
|
@ -225,8 +225,8 @@ class TestBilinearInterpCase6(TestBilinearInterpOp):
|
|
|
|
|
class TestBilinearInterpSame(TestBilinearInterpOp):
|
|
|
|
|
def init_test_case(self):
|
|
|
|
|
self.interp_method = 'bilinear'
|
|
|
|
|
self.input_shape = [2, 3, 128, 64]
|
|
|
|
|
self.out_h = 128
|
|
|
|
|
self.input_shape = [2, 3, 32, 64]
|
|
|
|
|
self.out_h = 32
|
|
|
|
|
self.out_w = 64
|
|
|
|
|
self.scale = 0.
|
|
|
|
|
self.align_corners = True
|
|
|
|
@ -307,9 +307,9 @@ class TestBilinearInterpOpUint8(OpTest):
|
|
|
|
|
class TestBilinearInterpCase1Uint8(TestBilinearInterpOpUint8):
|
|
|
|
|
def init_test_case(self):
|
|
|
|
|
self.interp_method = 'bilinear'
|
|
|
|
|
self.input_shape = [2, 3, 128, 64]
|
|
|
|
|
self.out_h = 120
|
|
|
|
|
self.out_w = 50
|
|
|
|
|
self.input_shape = [2, 3, 32, 64]
|
|
|
|
|
self.out_h = 64
|
|
|
|
|
self.out_w = 32
|
|
|
|
|
self.scale = 0.
|
|
|
|
|
self.align_corners = True
|
|
|
|
|
self.align_mode = 1
|
|
|
|
|