Add missing parameter dtype
@@ -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
