提交 cbb55465 authored 作者: ='s avatar =

doc fixes

上级 3b24a199
...@@ -417,7 +417,7 @@ such that: ``var.clients[*][0].inputs[index]`` or ...@@ -417,7 +417,7 @@ such that: ``var.clients[*][0].inputs[index]`` or
client = var.clients[0] client = var.clients[0]
client client
# (Sum(Elemwise{add,no_inplace}.0), 0) # (Sum(Elemwise{add,no_inplace}.0), 0)
type(clients[0][0]) type(client[0])
# <class 'theano.gof.graph.Apply'> # <class 'theano.gof.graph.Apply'>
assert client[0].inputs[client[1]] is var assert client[0].inputs[client[1]] is var
......
...@@ -27,13 +27,13 @@ DebugMode can be used as follows: ...@@ -27,13 +27,13 @@ DebugMode can be used as follows:
.. code-block:: python .. code-block:: python
x = tensor.dvector('x') x = tensor.dscalar('x')
f = theano.function([x], 10*x, mode='DebugMode') f = theano.function([x], 10*x, mode='DebugMode')
f(5) f(5)
f(0) f(0)
f(7) f(7)
It can also be used by setting the configuration variable :attr:`config.mode`. It can also be used by setting the configuration variable :attr:`config.mode`.
It can also be used by passing a DebugMode instance as the mode, as in It can also be used by passing a DebugMode instance as the mode, as in
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论