Skip to content

Commit d57880f

Browse files
authored
update op_compat.yaml [phi_ops] (#78819)
* update op_compat.yaml * fix
1 parent 6dfc086 commit d57880f

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

paddle/phi/ops/yaml/op_compat.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,6 @@
206206
amin_grad : GetReduceGradExpectedKernelType
207207
manual_signature : [amin]
208208

209-
- op : aminmax
210-
backward : aminmax_grad
211-
inputs :
212-
x : X
213-
outputs :
214-
{min : Min, max : Max}
215-
manual_signature : [aminmax]
216-
217209
- op : anchor_generator
218210
inputs:
219211
input : Input

test/legacy_test/test_aminmax_op.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def setUp(self):
5151
self.init_args()
5252
np.random.seed(2025)
5353
self.input_data = np.random.random(self.shape).astype(self.dtype)
54-
self.inputs = {'X': self.input_data}
54+
self.inputs = {'x': self.input_data}
5555
self.attrs = {'axis': self.axis, 'keepdim': self.keepdim}
5656
min_val, max_val = ref_aminmax(
5757
self.input_data, axis=self.axis_for_np, keepdim=self.keepdim
5858
)
59-
self.outputs = {'Min': min_val, 'Max': max_val}
59+
self.outputs = {'min': min_val, 'max': max_val}
6060

6161
def init_dtype(self):
6262
self.dtype = np.float64
@@ -74,8 +74,8 @@ def test_check_output(self):
7474

7575
def test_check_grad(self):
7676
self.check_grad(
77-
['X'],
78-
['Min', 'Max'],
77+
['x'],
78+
['min', 'max'],
7979
check_pir=True,
8080
)
8181

0 commit comments

Comments
 (0)