Skip to content

Commit 31f2e67

Browse files
committed
fix code style
1 parent 6e41b78 commit 31f2e67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ class TestSetValueItemSliceInWhile(TestSetValueApi):
110110
def _call_setitem(self, x):
111111
def cond(i, x):
112112
return i < 1
113-
113+
114114
def body(i, x):
115115
x[i] = self.value
116-
i = i+1
116+
i = i + 1
117117
return i, x
118-
119-
i = paddle.zeros(shape=(1,), dtype='int32')
118+
119+
i = paddle.zeros(shape=(1, ), dtype='int32')
120120
i, x = paddle.fluid.layers.while_loop(cond, body, [i, x])
121121

122122
def _get_answer(self):

0 commit comments

Comments
 (0)