提交 b2cce6d8 authored 作者: Sina Honari's avatar Sina Honari

adding autofunctions to doc/library/tensor/basic.txt

上级 ee650637
......@@ -583,26 +583,11 @@ dimensions, see :meth:`_tensor_py_operators.dimshuffle`.
:type n_ones: int
:type n_ones: number of dimension to be added to `x`
.. function:: unbroadcast(x, *axes)
.. autofunction:: theano.tensor.basic.unbroadcast
Make `x` impossible to broadcast in the specified axes `axes`. For
example, `unbroadcast(x, 0)` will make the first dimension of `x`
unbroadcastable.
.. autofunction:: theano.tensor.basic.addbroadcast
.. function:: addbroadcast(x, *axes)
Make `x` broadcastable in the specified axes `axes`. For
example, `addbroadcast(x, 0)` will make the first dimension of `x`
broadcastable. When performing the function, if the length of `x`
along that dimension is not 1, a ``ValueError`` will be raised.
.. function:: patternbroadcast(x, broadcastable)
Change `x` broadcastable pattern to
`broadcastable`. `broadcastable` must be iterable. For example,
`patternbroadcast(x, (True, False))` will make the first dimension
of `x` broadcastable and the second dimension not broadcastable,
so x will now be a `row`.
.. autofunction:: theano.tensor.basic.patternbroadcast
.. function:: flatten(x, outdim=1)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论