提交 9ee288ac 编写于 作者: S silingtong123 提交者: Tao Luo

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

上级 5ed23c60
...@@ -16544,7 +16544,7 @@ def uniform_random(shape, dtype='float32', min=-1.0, max=1.0, seed=0): ...@@ -16544,7 +16544,7 @@ def uniform_random(shape, dtype='float32', min=-1.0, max=1.0, seed=0):
helper = LayerHelper("uniform_random", **locals()) helper = LayerHelper("uniform_random", **locals())
inputs = dict() inputs = dict()
attrs = dict() attrs = {'seed': seed, 'min': min, 'max': max}
if in_dygraph_mode(): if in_dygraph_mode():
attrs = {'shape': shape} attrs = {'shape': shape}
else: else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册