提交 4a96bfed authored 作者: Micky Latowicki's avatar Micky Latowicki

doc/library/tensor/basic.txt: add alloc() to the list of ways of creating a tensor

上级 fc66c3fd
...@@ -295,7 +295,6 @@ them perfectly, but a dscalar otherwise. ...@@ -295,7 +295,6 @@ them perfectly, but a dscalar otherwise.
:rtype: :class:`TensorVariable` or :class:`TensorConstant` :rtype: :class:`TensorVariable` or :class:`TensorConstant`
TensorType and TensorVariable TensorType and TensorVariable
============================= =============================
...@@ -599,6 +598,12 @@ dimensions, see :meth:`_tensor_py_operators.dimshuffle`. ...@@ -599,6 +598,12 @@ dimensions, see :meth:`_tensor_py_operators.dimshuffle`.
Create a matrix by filling the shape of `a` with `b` Create a matrix by filling the shape of `a` with `b`
.. function:: alloc(value, *shape)
:param value: a value with which to fill the output
:param shape: the dimensions of the returned array
:returns: an N-dimensional tensor initialized by `value` and having the specified shape.
.. function:: eye(n, m=None, k=0, dtype=theano.config.floatX) .. function:: eye(n, m=None, k=0, dtype=theano.config.floatX)
:param n: number of rows in output (value or theano scalar) :param n: number of rows in output (value or theano scalar)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论