提交 91ad5224 编写于 作者: O Oleg Zabluda 提交者: François Chollet

Add missing parameter dtype (#8250)

上级 b5612acd
......@@ -460,10 +460,6 @@ def truncated_normal(shape, mean=0.0, stddev=1.0, dtype=None, seed=None):
stddev, seed=seed), dtype=dtype)
def zeros_like(x, dtype=None, name=None):
return x * 0
def dtype(x):
return _convert_dtype_string(x.dtype)
......@@ -488,7 +484,11 @@ def eye(size, dtype=None, name=None):
return variable(np.eye(size), dtype, name)
def ones_like(x, name=None):
def zeros_like(x, dtype=None, name=None):
return x * 0
def ones_like(x, dtype=None, name=None):
return zeros_like(x) + 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册