未验证 提交 9eb19df2 编写于 作者: Z Zeng Jinle 提交者: GitHub

fix uniform_random op,test=develop (#17492)

上级 c3949f56
......@@ -86,9 +86,9 @@ def uniform_random(shape, dtype='float32', min=-1.0, max=1.0, seed=0):
result = fluid.layers.uniform_random(shape=[32, 784])
"""
locals_var = locals()
if not isinstance(dtype, core.VarDesc.VarType):
dtype = convert_np_dtype_to_dtype_(dtype)
locals_var = locals()
kwargs = dict()
for name, val in locals_var.items():
if val is not None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册