提交 3c90efc9 authored 作者: Cesar Laurent's avatar Cesar Laurent

Corrected doc.

上级 4940bb33
...@@ -3966,7 +3966,12 @@ def shape_padright(t, n_ones=1): ...@@ -3966,7 +3966,12 @@ def shape_padright(t, n_ones=1):
def shape_padaxis(t, axis): def shape_padaxis(t, axis):
"""Reshape `t` by adding 1 at the dimension `axis`. """Reshape `t` by adding 1 at the dimension `axis`.
See also: `shape_padleft`, `shape_padright` and `Dimshuffle` See Also
--------
shape_padleft
shape_padright
Dimshuffle
""" """
_t = as_tensor_variable(t) _t = as_tensor_variable(t)
...@@ -3985,10 +3990,11 @@ def stack(*tensors): ...@@ -3985,10 +3990,11 @@ def stack(*tensors):
Note: The interface stack(*tensors) is deprecated, you should use Note: The interface stack(*tensors) is deprecated, you should use
stack(tensors, axis=0) insted. stack(tensors, axis=0) insted.
:Parameters: Parameters
- `tensors` : list or tuple of tensors ----------
tensors : list or tuple of tensors
A list of tensors to be stacked. A list of tensors to be stacked.
- `axis` : int axis : int
The index of the new axis. The index of the new axis.
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论