提交 c7a81516 authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #2964 from lukemetz/doc_fix

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