Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions test/legacy_test/test_cumsum_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def init_dtype(self):
self.dtype = self.dtype_ = np.float64

def set_enable_cinn(self):
self.enable_cinn = True
pass

def set_attrs_input_output(self):
self.attrs = {'axis': 2}
Expand Down Expand Up @@ -241,7 +241,7 @@ def init_dtype(self):
self.dtype = self.dtype_ = np.float64

def set_enable_cinn(self):
self.enable_cinn = True
pass

def set_attrs_input_output(self):
self.attrs = {'axis': 2, 'exclusive': True}
Expand Down Expand Up @@ -314,8 +314,6 @@ def setUp(self):
self.python_api = cumsum_wrapper
self.public_python_api = paddle.cumsum
self.init_dtype()
# TODO(thisjiang): set `True` after reduce+cast at shape=[4, 5, 20, 20], dim=[2]'s fusion bug has fixed
self.enable_cinn = False
self.attrs = {'axis': 2, "exclusive": True}
self.x = np.random.random((4, 5, 20)).astype(self.dtype)
self.out = np.concatenate(
Expand Down Expand Up @@ -381,7 +379,7 @@ def init_dtype(self):
self.dtype = self.dtype_ = np.float64

def set_enable_cinn(self):
self.enable_cinn = True
pass


def create_test_fp16_class(parent, max_relative_error=1e-2):
Expand All @@ -390,8 +388,7 @@ def init_dtype(self):
self.dtype = self.dtype_ = np.float16

def set_enable_cinn(self):
# TODO(thisjiang): set `pass` after reduce+cast at shape=[4, 5, 20, 20], dim=[2]'s fusion bug has fixed
self.enable_cinn = False
pass

def test_check_output(self):
self.check_output()
Expand Down