We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df540a commit 45e1f3eCopy full SHA for 45e1f3e
python/paddle/fluid/tests/unittests/ir/test_ir_graph_to_program_pass.py
@@ -85,7 +85,7 @@ def build_program():
85
program = static.Program()
86
with static.program_guard(program):
87
data = static.data(name='x', shape=[None, 13], dtype='float32')
88
- hidden = static.nn.fc(input=data, size=10)
+ hidden = static.nn.fc(data, size=10)
89
loss = paddle.mean(hidden)
90
paddle.optimizer.SGD(learning_rate=0.01).minimize(loss)
91
return program
@@ -147,10 +147,8 @@ def setUp(self):
147
@staticmethod
148
def multiblock_model():
149
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)
+ a = static.data(name='a', shape=[10, 1], dtype='int64')
+ b = static.data(name='b', shape=[10, 1], dtype='int64')
154
155
cond = paddle.greater_than(a, b)
156
ie = fluid.layers.IfElse(cond)
0 commit comments