fix parallel ssa graph executor test hang; test=develop (#25358)

fix_copy_if_different
hong 5 years ago committed by GitHub
parent d44ba589f3
commit 88e05c4048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ class TestParallelExecutorFetchIsolatedVarBase(unittest.TestCase):
def build_network(self, is_training):
x = fluid.data(name='x', shape=[-1, 10], dtype='float32')
y = fluid.data(name='y', shape=[-1, 10], dtype='float32')
fc = fluid.layers.fc(x, size=30)
fc = fluid.layers.fc(x, size=30, bias_attr=False)
loss = fluid.layers.reduce_mean(fc)
if is_training:
adam = fluid.optimizer.Adam(learning_rate=1e-3)

Loading…
Cancel
Save