Skip to content

Commit

Permalink
[0D-Tensor] Fix test_elementwise_max_op unittest of FP16 (PaddlePaddl…
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahy0825 authored and wz1qqx committed Jul 31, 2023
1 parent 10ad0f1 commit a71aa31
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/legacy_test/test_elementwise_max_op.py
Expand Up @@ -130,9 +130,6 @@ def init_data(self):
self.x = np.random.uniform(0.1, 1, []).astype(np.float16)
self.y = np.random.uniform(0.1, 1, []).astype(np.float16)

def if_enbale_cinn(self):
self.enable_cinn = False


class TestElementwiseMaxOp_ZeroDim2(TestElementwiseOp):
def init_data(self):
Expand All @@ -145,9 +142,6 @@ def init_data(self):
self.x = np.random.uniform(0.1, 1, [13, 17]).astype(np.float16)
self.y = np.random.uniform(0.1, 1, []).astype(np.float16)

def if_enbale_cinn(self):
self.enable_cinn = False


class TestElementwiseMaxOp_ZeroDim3(TestElementwiseOp):
def init_data(self):
Expand All @@ -160,9 +154,6 @@ def init_data(self):
self.x = np.random.uniform(0.1, 1, []).astype(np.float16)
self.y = np.random.uniform(0.1, 1, [13, 17]).astype(np.float16)

def if_enbale_cinn(self):
self.enable_cinn = False


@unittest.skipIf(
core.is_compiled_with_cuda()
Expand Down

0 comments on commit a71aa31

Please sign in to comment.