test=develop, fix the parameter seed failed to work (#20412)

revert-20712-fix_depthwise_conv
silingtong123 6 years ago committed by Tao Luo
parent 5ed23c6082
commit 9ee288ac87

@ -16544,7 +16544,7 @@ def uniform_random(shape, dtype='float32', min=-1.0, max=1.0, seed=0):
helper = LayerHelper("uniform_random", **locals())
inputs = dict()
attrs = dict()
attrs = {'seed': seed, 'min': min, 'max': max}
if in_dygraph_mode():
attrs = {'shape': shape}
else:

Loading…
Cancel
Save