Skip to content

Commit 9227c33

Browse files
authored
fix typo keywords (PaddlePaddle#76408)
1 parent 276c821 commit 9227c33

22 files changed

+112
-112
lines changed

test/legacy_test/test_activation_op.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6267,10 +6267,10 @@ def test_dygraph_Compatibility(self):
62676267
# (1) Position args
62686268
out1 = paddle_func(x)
62696269
paddle_dygraph_out.append(out1)
6270-
# (2) Key words args for paddle
6270+
# (2) Keywords args for paddle
62716271
out2 = paddle_func(x=x)
62726272
paddle_dygraph_out.append(out2)
6273-
# (3) Key words args for torch compatibility
6273+
# (3) Keywords args for torch compatibility
62746274
out3 = paddle_func(input=x)
62756275
paddle_dygraph_out.append(out3)
62766276
# (4) Tensor method args: x.func()
@@ -6298,9 +6298,9 @@ def test_static_Compatibility(self):
62986298
x = paddle.static.data(name="x", shape=self.shape, dtype=self.dtype)
62996299
# (1) Position args
63006300
out1 = paddle_func(x)
6301-
# (2) Key words args for paddle
6301+
# (2) Keywords args for paddle
63026302
out2 = paddle_func(x=x)
6303-
# (3) Key words args for torch compatibility
6303+
# (3) Keywords args for torch compatibility
63046304
out3 = paddle_func(input=x)
63056305
# (4) Tensor method args (x.func())
63066306
out4 = getattr(x, act_name)()
@@ -6339,10 +6339,10 @@ def test_dygraph_Compatibility(self):
63396339
# (1) Position args
63406340
out1 = paddle_func(x)
63416341
paddle_dygraph_out.append(out1)
6342-
# (2) Key words args for paddle
6342+
# (2) Keywords args for paddle
63436343
out2 = paddle_func(x=x)
63446344
paddle_dygraph_out.append(out2)
6345-
# (3) Key words args for torch compatibility
6345+
# (3) Keywords args for torch compatibility
63466346
out3 = paddle_func(input=x)
63476347
paddle_dygraph_out.append(out3)
63486348
if has_out:
@@ -6367,9 +6367,9 @@ def test_static_Compatibility(self):
63676367
x = paddle.static.data(name="x", shape=self.shape, dtype=self.dtype)
63686368
# (1) Position args
63696369
out1 = paddle_func(x)
6370-
# (2) Key words args for paddle
6370+
# (2) Keywords args for paddle
63716371
out2 = paddle_func(x=x)
6372-
# (3) Key words args for torch compatibility
6372+
# (3) Keywords args for torch compatibility
63736373
out3 = paddle_func(input=x)
63746374
ref_out = ref_func(self.np_x)
63756375
fetch_list = [out1, out2, out3]

test/legacy_test/test_arg_min_max_v2_op.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,10 @@ def _test_dygraph_Compatibility(self, api_name):
413413
# Position args (args)
414414
out1 = paddle_api(x, 1)
415415
paddle_dygraph_out.append(out1)
416-
# Key words args (kwargs) for paddle
416+
# Keywords args (kwargs) for paddle
417417
out2 = paddle_api(x=x, axis=1)
418418
paddle_dygraph_out.append(out2)
419-
# Key words args for torch
419+
# Keywords args for torch
420420
out3 = paddle_api(input=x, dim=1)
421421
paddle_dygraph_out.append(out3)
422422
# Combined args and kwargs
@@ -448,9 +448,9 @@ def _test_static_Compatibility(self, api_name):
448448
paddle_api = eval(f"paddle.{api_name}")
449449
# Position args (args)
450450
out1 = paddle_api(x, 1)
451-
# Key words args (kwargs) for paddle
451+
# Keywords args (kwargs) for paddle
452452
out2 = paddle_api(x=x, axis=1)
453-
# Key words args for torch
453+
# Keywords args for torch
454454
out3 = paddle_api(input=x, dim=1)
455455
# Combined args and kwargs
456456
out4 = paddle_api(x, dim=1)

test/legacy_test/test_ceil_op.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ def test_dygraph_Compatibility(self):
4848
# Position args (args)
4949
out1 = paddle.ceil(x)
5050
paddle_dygraph_out.append(out1)
51-
# Key words args (kwargs) for paddle
51+
# Keywords args (kwargs) for paddle
5252
out2 = paddle.ceil(x=x)
5353
paddle_dygraph_out.append(out2)
54-
# Key words args for torch compatibility
54+
# Keywords args for torch compatibility
5555
out3 = paddle.ceil(input=x)
5656
paddle_dygraph_out.append(out3)
5757
# Tensor method args
@@ -75,9 +75,9 @@ def test_static_Compatibility(self):
7575
x = paddle.static.data(name="x", shape=self.shape, dtype=self.dtype)
7676
# Position args (args)
7777
out1 = paddle.ceil(x)
78-
# Key words args (kwargs) for paddle
78+
# Keywords args (kwargs) for paddle
7979
out2 = paddle.ceil(x=x)
80-
# Key words args for torch compatibility
80+
# Keywords args for torch compatibility
8181
out3 = paddle.ceil(input=x)
8282
# Tensor method args
8383
out4 = x.ceil()

test/legacy_test/test_conv1d_layer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@ def test_dygraph_Compatibility(self):
410410
# Position args (args)
411411
out1 = paddle.nn.functional.conv1d(x, w)
412412
paddle_dygraph_out.append(out1)
413-
# Key words args (kwargs) for paddle
413+
# Keywords args (kwargs) for paddle
414414
out2 = paddle.nn.functional.conv1d(x=x, weight=w)
415415
paddle_dygraph_out.append(out2)
416-
# Key words args for alias compatibility - testing x->input
416+
# Keywords args for alias compatibility - testing x->input
417417
out3 = paddle.nn.functional.conv1d(input=x, weight=w)
418418
paddle_dygraph_out.append(out3)
419419
# Combined args and kwargs
@@ -451,10 +451,10 @@ def test_static_Compatibility(self):
451451
# Position args (args)
452452
out1 = paddle.nn.functional.conv1d(x, w)
453453
fetch_list.append(out1)
454-
# Key words args (kwargs) for paddle
454+
# Keywords args (kwargs) for paddle
455455
out2 = paddle.nn.functional.conv1d(x=x, weight=w)
456456
fetch_list.append(out2)
457-
# Key words args for alias compatibility - testing x->input
457+
# Keywords args for alias compatibility - testing x->input
458458
out3 = paddle.nn.functional.conv1d(input=x, weight=w)
459459
fetch_list.append(out3)
460460
# Combined args and kwargs

test/legacy_test/test_conv2d_layer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ def test_dygraph_Compatibility(self):
330330
# Position args (args)
331331
out1 = paddle.nn.functional.conv2d(x, w)
332332
paddle_dygraph_out.append(out1)
333-
# Key words args (kwargs) for paddle
333+
# Keywords args (kwargs) for paddle
334334
out2 = paddle.nn.functional.conv2d(x=x, weight=w)
335335
paddle_dygraph_out.append(out2)
336-
# Key words args for alias compatibility
336+
# Keywords args for alias compatibility
337337
out3 = paddle.nn.functional.conv2d(input=x, weight=w)
338338
paddle_dygraph_out.append(out3)
339339
# Combined args and kwargs
@@ -372,10 +372,10 @@ def test_static_Compatibility(self):
372372
# Position args (args)
373373
out1 = paddle.nn.functional.conv2d(x, w)
374374
fetch_list.append(out1)
375-
# Key words args (kwargs) for paddle
375+
# Keywords args (kwargs) for paddle
376376
out2 = paddle.nn.functional.conv2d(x=x, weight=w)
377377
fetch_list.append(out2)
378-
# Key words args for alias compatibility
378+
# Keywords args for alias compatibility
379379
out3 = paddle.nn.functional.conv2d(input=x, weight=w)
380380
fetch_list.append(out3)
381381
# Combined args and kwargs

test/legacy_test/test_conv3d_layer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ def test_dygraph_Compatibility(self):
326326
# Position args (args)
327327
out1 = paddle.nn.functional.conv3d(x, w)
328328
paddle_dygraph_out.append(out1)
329-
# Key words args (kwargs) for paddle
329+
# Keywords args (kwargs) for paddle
330330
out2 = paddle.nn.functional.conv3d(x=x, weight=w)
331331
paddle_dygraph_out.append(out2)
332-
# Key words args for alias compatibility
332+
# Keywords args for alias compatibility
333333
out3 = paddle.nn.functional.conv3d(input=x, weight=w)
334334
paddle_dygraph_out.append(out3)
335335
# Combined args and kwargs
@@ -368,10 +368,10 @@ def test_static_Compatibility(self):
368368
# Position args (args)
369369
out1 = paddle.nn.functional.conv3d(x, w)
370370
fetch_list.append(out1)
371-
# Key words args (kwargs) for paddle
371+
# Keywords args (kwargs) for paddle
372372
out2 = paddle.nn.functional.conv3d(x=x, weight=w)
373373
fetch_list.append(out2)
374-
# Key words args for alias compatibility
374+
# Keywords args for alias compatibility
375375
out3 = paddle.nn.functional.conv3d(input=x, weight=w)
376376
fetch_list.append(out3)
377377
# Combined args and kwargs

test/legacy_test/test_cumprod_op.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,10 +1189,10 @@ def test_dygraph_Compatibility(self):
11891189
# Position args (args)
11901190
out1 = paddle.cumprod(x, self.dim)
11911191
paddle_dygraph_out.append(out1)
1192-
# Key words args (kwargs) for paddle
1192+
# Keywords args (kwargs) for paddle
11931193
out2 = paddle.cumprod(x=x, dim=self.dim)
11941194
paddle_dygraph_out.append(out2)
1195-
# Key words args for torch compatibility
1195+
# Keywords args for torch compatibility
11961196
out3 = paddle.cumprod(input=x, dim=self.dim)
11971197
paddle_dygraph_out.append(out3)
11981198
# Tensor method args
@@ -1217,9 +1217,9 @@ def test_static_Compatibility(self):
12171217
x = paddle.static.data(name="x", shape=self.shape, dtype=self.dtype)
12181218
# Position args (args)
12191219
out1 = paddle.cumprod(x, self.dim)
1220-
# Key words args (kwargs) for paddle
1220+
# Keywords args (kwargs) for paddle
12211221
out2 = paddle.cumprod(x=x, dim=self.dim)
1222-
# Key words args for torch compatibility
1222+
# Keywords args for torch compatibility
12231223
out3 = paddle.cumprod(input=x, dim=self.dim)
12241224
# Tensor method args
12251225
out4 = x.cumprod(dim=self.dim)

test/legacy_test/test_diagonal_op.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ def test_dygraph_Compatibility(self):
252252
# Position args (args)
253253
out1 = paddle.diagonal(x)
254254
paddle_dygraph_out.append(out1)
255-
# Key words args for paddle
255+
# Keywords args for paddle
256256
out2 = paddle.diagonal(x=x, offset=1, axis1=0, axis2=2)
257257
paddle_dygraph_out.append(out2)
258-
# Key words args for torch
258+
# Keywords args for torch
259259
out3 = paddle.diagonal(input=x, offset=-1, dim1=1, dim2=2)
260260
paddle_dygraph_out.append(out3)
261261
# Mixed args - paddle parameters prioritized
@@ -298,9 +298,9 @@ def test_static_Compatibility(self):
298298
x = paddle.static.data(name="x", shape=self.shape, dtype=self.dtype)
299299
# Position args (args)
300300
out1 = paddle.diagonal(x)
301-
# Key words args for paddle
301+
# Keywords args for paddle
302302
out2 = paddle.diagonal(x=x, offset=1, axis1=0, axis2=2)
303-
# Key words args for torch
303+
# Keywords args for torch
304304
out3 = paddle.diagonal(input=x, offset=-1, dim1=1, dim2=2)
305305
# Mixed args - paddle parameters prioritized
306306
out4 = paddle.diagonal(x, offset=0, axis1=1, axis2=2)

test/legacy_test/test_dot_op.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,10 @@ def test_dygraph_Compatibility(self):
537537
# Position args (args)
538538
out1 = paddle.dot(x, y)
539539
paddle_dygraph_out.append(out1)
540-
# Key words args (kwargs) for paddle
540+
# Keywords args (kwargs) for paddle
541541
out2 = paddle.dot(x=x, y=y)
542542
paddle_dygraph_out.append(out2)
543-
# Key words args for torch compatibility
543+
# Keywords args for torch compatibility
544544
out3 = paddle.dot(input=x, tensor=y)
545545
paddle_dygraph_out.append(out3)
546546
# Combined args and kwargs
@@ -573,9 +573,9 @@ def test_static_Compatibility(self):
573573
y = paddle.static.data(name="y", shape=self.shape, dtype=self.dtype)
574574
# Position args (args)
575575
out1 = paddle.dot(x, y)
576-
# Key words args (kwargs) for paddle
576+
# Keywords args (kwargs) for paddle
577577
out2 = paddle.dot(x=x, y=y)
578-
# Key words args for torch compatibility
578+
# Keywords args for torch compatibility
579579
out3 = paddle.dot(input=x, tensor=y)
580580
# Combined args and kwargs
581581
out4 = paddle.dot(x, tensor=y)

test/legacy_test/test_elementwise_mod_op.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -664,10 +664,10 @@ def test_dygraph_Compatibility(self):
664664
# Position args (args)
665665
out1 = paddle.remainder(x, y)
666666
paddle_dygraph_out.append(out1)
667-
# Key words args (kwargs) for paddle
667+
# Keywords args (kwargs) for paddle
668668
out2 = paddle.remainder(x=x, y=y)
669669
paddle_dygraph_out.append(out2)
670-
# Key words args for torch
670+
# Keywords args for torch
671671
out3 = paddle.remainder(input=x, other=y)
672672
paddle_dygraph_out.append(out3)
673673
# Combined args and kwargs
@@ -698,9 +698,9 @@ def test_static_Compatibility(self):
698698
)
699699
# Position args (args)
700700
out1 = paddle.remainder(x, y)
701-
# Key words args (kwargs) for paddle
701+
# Keywords args (kwargs) for paddle
702702
out2 = paddle.remainder(x=x, y=y)
703-
# Key words args for torch
703+
# Keywords args for torch
704704
out3 = paddle.remainder(input=x, other=y)
705705
# Combined args and kwargs
706706
out4 = paddle.remainder(x, other=y)
@@ -742,10 +742,10 @@ def test_dygraph_Compatibility(self):
742742
# Position args (args)
743743
out1 = paddle.remainder(x, y)
744744
paddle_dygraph_out.append(out1)
745-
# Key words args (kwargs) for paddle
745+
# Keywords args (kwargs) for paddle
746746
out2 = paddle.remainder(x=x, y=y)
747747
paddle_dygraph_out.append(out2)
748-
# Key words args for torch
748+
# Keywords args for torch
749749
out3 = paddle.remainder(input=x, other=y)
750750
paddle_dygraph_out.append(out3)
751751
# Combined args and kwargs
@@ -777,9 +777,9 @@ def test_static_Compatibility(self):
777777
y = self.np_y_input
778778
# Position args (args)
779779
out1 = paddle.remainder(x, y)
780-
# Key words args (kwargs) for paddle
780+
# Keywords args (kwargs) for paddle
781781
out2 = paddle.remainder(x=x, y=y)
782-
# Key words args for torch
782+
# Keywords args for torch
783783
out3 = paddle.remainder(input=x, other=y)
784784
# Combined args and kwargs
785785
out4 = paddle.remainder(x, other=y)

0 commit comments

Comments
 (0)