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
47 changes: 1 addition & 46 deletions test/legacy_test/test_activation_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def test_check_grad(self):
self.check_grad(
['X'],
'Out',
max_relative_error=0.006,
max_relative_error=0.007,
check_prim=False,
check_pir=True,
check_prim_pir=False,
Expand Down Expand Up @@ -5072,32 +5072,6 @@ def test_check_grad(self):
['X'], 'Out', check_pir=True, check_pir_onednn=self.check_pir_onednn
)

def test_check_output_2(self):
self.check_output_with_place(
paddle.CPUPlace(), check_pir=True, check_pir_onednn=True
)
if core.is_compiled_with_cuda():
self.check_output_with_place(
core.CUDAPlace(0), check_pir=True, check_pir_onednn=True
)

def test_check_grad_2(self):
self.check_grad_with_place(
paddle.CPUPlace(),
['X'],
'Out',
check_pir=True,
check_pir_onednn=True,
)
if core.is_compiled_with_cuda():
self.check_grad_with_place(
core.CUDAPlace(0),
['X'],
'Out',
check_pir=True,
check_pir_onednn=True,
)


class TestSoftplus_Complex64(TestSoftplus):
def init_dtype(self):
Expand All @@ -5112,25 +5086,6 @@ def test_check_grad(self):
check_pir_onednn=self.check_pir_onednn,
)

def test_check_grad_2(self):
self.check_grad_with_place(
paddle.CPUPlace(),
['X'],
'Out',
max_relative_error=0.06,
check_pir=True,
check_pir_onednn=True,
)
if core.is_compiled_with_cuda():
self.check_grad_with_place(
core.CUDAPlace(0),
['X'],
'Out',
max_relative_error=0.06,
check_pir=True,
check_pir_onednn=True,
)


class TestSoftplus_Complex128(TestSoftplus):
def init_dtype(self):
Expand Down