Skip to content

Commit 33a7bb8

Browse files
authored
[CodeStyle][E231] remove unnecessary , (#47297)
1 parent d869056 commit 33a7bb8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

python/paddle/fluid/tests/unittests/distributed_passes/ps_pass_test_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def ps_launch(self, ps_mode="cpu-ps"):
4747
if ps_mode == "cpu-ps" or ps_mode == 'heter-ps':
4848
os.environ['WITH_DISTRIBUTE'] = 'ON'
4949

50-
cmd = [sys.executable, "-u",] + [
50+
cmd = [
51+
sys.executable,
52+
"-u",
5153
"-m",
5254
"launch",
5355
"--log_dir",

python/paddle/fluid/tests/unittests/test_layer_norm_op.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ def _reference_layer_norm_grad(
106106
grad_x = dx_end + d_mean + d_std
107107

108108
grad_x.shape, x.shape, grad_y.shape = x_shape, x_shape, x_shape
109-
var.shape, mean.shape = [N,], [
110-
N,
111-
]
109+
var.shape, mean.shape = [N], [N]
112110

113111
if scale is not None:
114112
scale.shape = scale_shape

python/paddle/fluid/tests/unittests/test_set_value_op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ def test_consistent_with_competitor(self):
13161316
def test_static_graph(self):
13171317
paddle.enable_static()
13181318

1319-
to_string = lambda x, i,: x + '_' + str(i)
1319+
to_string = lambda x, i: x + '_' + str(i)
13201320
numel = lambda input_shape: reduce(lambda x, y: x * y, input_shape)
13211321

13221322
def op1(x):

0 commit comments

Comments
 (0)