提交 e34c32f6 authored 作者: hantek's avatar hantek

solve more doctest errors

上级 1cb731e4
......@@ -426,7 +426,7 @@ You can try the new Op as follows:
.. testoutput:: example
:hide:
:options: +ELLIPSIS
:options: +ELLIPSIS, +SKIP
.. code-block:: none
......@@ -456,7 +456,7 @@ You can try the new Op as follows:
.. testoutput:: example
:hide:
:options: +ELLIPSIS
:options: +ELLIPSIS, +SKIP
.. code-block:: none
......
......@@ -336,7 +336,7 @@ shows how to print all inputs and outputs:
end='')
def inspect_outputs(i, node, fn):
print("output(s) value(s):", [output[0] for output in fn.outputs])
print(" output(s) value(s):", [output[0] for output in fn.outputs])
x = theano.tensor.dscalar('x')
f = theano.function([x], [5 * x],
......
......@@ -30,14 +30,15 @@ functions using either of the following two options:
2. Pass the argument :attr:`profile=True` to the function :func:`theano.function <function.function>`. And then call :attr:`f.profile.print_summary()` for a single function.
- Use this option when you want to profile not all the
functions but one or more specific function(s).
- You can also combine the profile of many functions:
.. testcode::
- You can also combine the profile of many functions:
.. doctest::
:hide:
profile = theano.compile.ProfileStats()
f = theano.function(..., profile=profile)
g = theano.function(..., profile=profile)
...
f = theano.function(..., profile=profile) # doctest: +SKIP
g = theano.function(..., profile=profile) # doctest: +SKIP
... # doctest: +SKIP
profile.print_summary()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论