提交 edfb49e4 authored 作者: Frederic's avatar Frederic

Add roll and PdbBreakpoint to the doc

上级 d66ffcfc
...@@ -656,6 +656,7 @@ dimensions, see :meth:`_tensor_py_operators.dimshuffle`. ...@@ -656,6 +656,7 @@ dimensions, see :meth:`_tensor_py_operators.dimshuffle`.
`len(reps)` must be equal and, if specified, `ndim` must be `len(reps)` must be equal and, if specified, `ndim` must be
equal to both. equal to both.
.. autofunction:: roll
Creating Tensor Creating Tensor
=============== ===============
......
...@@ -567,3 +567,6 @@ the Ops from Theano and Pylearn2. ...@@ -567,3 +567,6 @@ the Ops from Theano and Pylearn2.
# Where filename is a string to a file that we will write to. # Where filename is a string to a file that we will write to.
Then send us filename. Then send us filename.
.. autoclass:: theano.tests.breakpoint.PdbBreakpoint
...@@ -3968,7 +3968,7 @@ pprint.assign(lambda pstate, r: r.owner and isinstance(r.owner.op, Join), ...@@ -3968,7 +3968,7 @@ pprint.assign(lambda pstate, r: r.owner and isinstance(r.owner.op, Join),
def roll(x, shift, axis=None): def roll(x, shift, axis=None):
""" """
Convenience function to roll `TensorType`s along the given axis. Convenience function to roll TensorTypes along the given axis.
Syntax copies numpy.roll function. Syntax copies numpy.roll function.
...@@ -3986,7 +3986,7 @@ def roll(x, shift, axis=None): ...@@ -3986,7 +3986,7 @@ def roll(x, shift, axis=None):
Returns Returns
------- -------
tensor tensor
Output tensor, with the same shape as `x`. Output tensor, with the same shape as ``x``.
""" """
if axis is None: if axis is None:
......
...@@ -12,8 +12,8 @@ class PdbBreakpoint(Op): ...@@ -12,8 +12,8 @@ class PdbBreakpoint(Op):
conditional breakpoint, inside a theano function, based on a symbolic conditional breakpoint, inside a theano function, based on a symbolic
scalar condition. scalar condition.
@type name: String :type name: String
@param name: name of the conditional breakpoint. To be printed when the :param name: name of the conditional breakpoint. To be printed when the
breakpoint is activated. breakpoint is activated.
:note: WARNING. At least one of the outputs of the op must be used :note: WARNING. At least one of the outputs of the op must be used
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论