Skip to content

Commit 45e1f3e

Browse files
committed
fix CI failed problem
1 parent 5df540a commit 45e1f3e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

python/paddle/fluid/tests/unittests/ir/test_ir_graph_to_program_pass.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def build_program():
8585
program = static.Program()
8686
with static.program_guard(program):
8787
data = static.data(name='x', shape=[None, 13], dtype='float32')
88-
hidden = static.nn.fc(input=data, size=10)
88+
hidden = static.nn.fc(data, size=10)
8989
loss = paddle.mean(hidden)
9090
paddle.optimizer.SGD(learning_rate=0.01).minimize(loss)
9191
return program
@@ -147,10 +147,8 @@ def setUp(self):
147147
@staticmethod
148148
def multiblock_model():
149149
data = static.data(name='t', shape=[None, 10], dtype='float32')
150-
a = static.data(
151-
name='a', shape=[10, 1], dtype='int64', append_batch_size=False)
152-
b = static.data(
153-
name='b', shape=[10, 1], dtype='int64', append_batch_size=False)
150+
a = static.data(name='a', shape=[10, 1], dtype='int64')
151+
b = static.data(name='b', shape=[10, 1], dtype='int64')
154152
155153
cond = paddle.greater_than(a, b)
156154
ie = fluid.layers.IfElse(cond)

0 commit comments

Comments
 (0)