Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 0 additions & 8 deletions paddle/phi/ops/yaml/op_compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,6 @@
amin_grad : GetReduceGradExpectedKernelType
manual_signature : [amin]

- op : aminmax
backward : aminmax_grad
inputs :
x : X
outputs :
{min : Min, max : Max}
manual_signature : [aminmax]

- op : anchor_generator
inputs:
input : Input
Expand Down
8 changes: 4 additions & 4 deletions test/legacy_test/test_aminmax_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def setUp(self):
self.init_args()
np.random.seed(2025)
self.input_data = np.random.random(self.shape).astype(self.dtype)
self.inputs = {'X': self.input_data}
self.inputs = {'x': self.input_data}
self.attrs = {'axis': self.axis, 'keepdim': self.keepdim}
min_val, max_val = ref_aminmax(
self.input_data, axis=self.axis_for_np, keepdim=self.keepdim
)
self.outputs = {'Min': min_val, 'Max': max_val}
self.outputs = {'min': min_val, 'max': max_val}

def init_dtype(self):
self.dtype = np.float64
Expand All @@ -74,8 +74,8 @@ def test_check_output(self):

def test_check_grad(self):
self.check_grad(
['X'],
['Min', 'Max'],
['x'],
['min', 'max'],
check_pir=True,
)

Expand Down
Loading