提交 1137f180 authored 作者: Samira Shabanian's avatar Samira Shabanian

added dtype param

上级 65375619
...@@ -668,6 +668,7 @@ Creating Tensor ...@@ -668,6 +668,7 @@ Creating Tensor
:param x: tensor that has the same shape as output :param x: tensor that has the same shape as output
:param dtype: data-type, optional :param dtype: data-type, optional
By default, it will be x.dtype.
Returns a tensor the shape of x filled with zeros of the type of dtype. Returns a tensor the shape of x filled with zeros of the type of dtype.
...@@ -677,7 +678,8 @@ Creating Tensor ...@@ -677,7 +678,8 @@ Creating Tensor
:param x: tensor that has the same shape as output :param x: tensor that has the same shape as output
:param dtype: data-type, optional :param dtype: data-type, optional
By default, it will be x.dtype.
Returns a tensor the shape of x filled with ones of the type of dtype. Returns a tensor the shape of x filled with ones of the type of dtype.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论