Skip to content

Commit 604e5a7

Browse files
authored
[CodeStyle] black -> ruff format migration - part 11 (#74664)
1 parent ad70020 commit 604e5a7

20 files changed

+0
-33
lines changed

test/legacy_test/test_polygamma_op.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ def test_check_grad(self):
208208

209209

210210
class TestPolygammaOp_ZeroSize(TestPolygammaOp):
211-
212211
def init_config(self):
213212
self.dtype = np.float64
214213
self.order = 1

test/legacy_test/test_positive.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
class TestPositiveApi(unittest.TestCase):
23-
2423
def setUp(self):
2524
paddle.disable_static()
2625
self.shape = [2, 3, 4, 5]

test/legacy_test/test_prod_op.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ def test_gpu(self):
230230

231231

232232
class TestProdOpError(unittest.TestCase):
233-
234233
def test_error(self):
235234
with (
236235
static_guard(),

test/legacy_test/test_randint_op.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def verify_output(self, outs):
5151

5252

5353
class TestRandintOpError(unittest.TestCase):
54-
5554
def test_errors(self):
5655
with paddle.static.program_guard(
5756
paddle.static.Program(), paddle.static.Program()

test/legacy_test/test_randperm_op.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def verify_output(self, outs):
161161

162162

163163
class TestRandpermOpError(unittest.TestCase):
164-
165164
def test_errors(self):
166165
with paddle.static.program_guard(
167166
paddle.static.Program(), paddle.static.Program()
@@ -172,7 +171,6 @@ def test_errors(self):
172171

173172

174173
class TestRandpermAPI(unittest.TestCase):
175-
176174
def test_out(self):
177175
paddle.enable_static()
178176
n = 10

test/legacy_test/test_reduce_op.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ def test_check_grad(self):
232232

233233

234234
class TestSumOp3D0size(TestSumOp3Dim):
235-
236235
def test_check_output(self):
237236
self.check_output(check_pir=True, check_pir_onednn=True)
238237

@@ -1243,7 +1242,6 @@ def setUp(self):
12431242

12441243

12451244
class TestAllOpError(unittest.TestCase):
1246-
12471245
def test_errors(self):
12481246
with paddle.static.program_guard(
12491247
paddle.static.Program(), paddle.static.Program()
@@ -1528,7 +1526,6 @@ def test_check_output(self):
15281526

15291527

15301528
class TestAnyOpError(unittest.TestCase):
1531-
15321529
def test_errors(self):
15331530
with paddle.static.program_guard(
15341531
paddle.static.Program(), paddle.static.Program()

test/legacy_test/test_rms_norm_op.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,6 @@ def test_residual_bias_add_rmsnorm(self):
840840

841841

842842
class TestRMSNormAxisEquivalence(unittest.TestCase):
843-
844843
def setUp(self):
845844
np.random.seed(123)
846845
paddle.seed(123)

test/legacy_test/test_scatter_nd_op.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ def test_static_graph():
497497

498498
# Test Raise Error
499499
class TestScatterNdOpRaise(unittest.TestCase):
500-
501500
def test_check_raise(self):
502501
def check_raise_is_test():
503502
with static_guard():

test/legacy_test/test_segment_ops.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ def prepare(self):
431431

432432

433433
class API_SegmentOpsTest(unittest.TestCase):
434-
435434
def test_static(self):
436435
with paddle.static.program_guard(paddle.static.Program()):
437436
x = paddle.static.data(name="x", shape=[3, 3], dtype="float32")
@@ -485,7 +484,6 @@ def test_dygraph(self):
485484

486485

487486
class API_GeometricSegmentOpsTest(unittest.TestCase):
488-
489487
def test_static(self):
490488
with paddle.static.program_guard(paddle.static.Program()):
491489
x = paddle.static.data(name="x", shape=[3, 3], dtype="float32")

test/legacy_test/test_sigmoid_cross_entropy_with_logits_op.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ def test_check_grad(self):
336336

337337

338338
class TestSigmoidCrossEntropyWithLogitsOpError(unittest.TestCase):
339-
340339
def test_errors(self):
341340
with paddle.static.program_guard(
342341
paddle.static.Program(), paddle.static.Program()

0 commit comments

Comments
 (0)