提交 b26239a9 authored 作者: Frederic Bastien's avatar Frederic Bastien

Add zeros/ones in the doc

上级 5f2c14a6
......@@ -676,6 +676,20 @@ Creating Tensor
Returns a tensor filled with 1s that has same shape as `x`.
.. function:: zeros(shape, dtype=None)
:param shape: a tuple/list of scalar with the shape information.
:param dtype: the dtype of the new tensor. If None, will use floatX.
Returns a tensor filled with 0s of the provided shape.
.. function:: ones(shape, dtype=None)
:param shape: a tuple/list of scalar with the shape information.
:param dtype: the dtype of the new tensor. If None, will use floatX.
Returns a tensor filled with 1s of the provided shape.
.. function:: fill(a,b)
:param a: tensor that has same shape as output
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论