Only the inputs vars of ops in Pserver program will be cloned, other

input vars will NOT take into account
revert-12383-port_py3_syntax
minqiyang 7 years ago
parent 02e521e3ac
commit 5ebf56bf0e

@ -550,10 +550,10 @@ class DistributeTranspiler(object):
op_on_pserver = True
new_outputs[key] = pserver_vars[op.output(key)[0]]
if op_on_pserver:
# most startup program ops have no inputs
new_inputs = self._get_input_map_from_op(pserver_vars, op)
if op_on_pserver:
if op.type in [
"gaussian_random", "fill_constant", "uniform_random"
]:

Loading…
Cancel
Save