提交 7c71f3ad authored 作者: Frederic's avatar Frederic

fix typo in doc/docstring

上级 461b7e02
...@@ -85,17 +85,17 @@ Unsafe optimization ...@@ -85,17 +85,17 @@ Unsafe optimization
=================== ===================
Some Theano optimizations make the assumption that the user inputs is Some Theano optimizations make the assumption that the user inputs are
valid. What that mean is that if the user provide invalid values (like valid. What this means is that if the user provides invalid values (like
not compatible shapes or indexing values that are out of bound) and incompatible shapes or indexing values that are out of bounds) and
the optimizations is applied, the user error will get lost.Most of the the optimizations are applied, the user error will get lost. Most of the
time, the assumption is that the user inputs are valid. So it is good time, the assumption is that the user inputs are valid. So it is good
to have the optimization being applied. But loosing the error is bad. to have the optimization being applied, but loosing the error is bad.
The newest optimization in Theano with such assumption will add The newest optimization in Theano with such assumption will add an
assertion in the graph to keep the user error message. But computing assertion in the graph to keep the user error message. Computing
those assumption could take some time. If you are sure you all is valid these assertions could take some time. If you are sure everything is valid
in your graph and want the fastest possible Theano, you can enable an in your graph and want the fastest possible Theano, you can enable an
optimization that will remove those assertion: optimization that will remove those assertions with:
``optimizer_including=local_remove_all_assert`` ``optimizer_including=local_remove_all_assert``
......
...@@ -1584,7 +1584,7 @@ def local_remove_useless_assert(node): ...@@ -1584,7 +1584,7 @@ def local_remove_useless_assert(node):
@gof.local_optimizer([Assert]) @gof.local_optimizer([Assert])
def local_remove_all_assert(node): def local_remove_all_assert(node):
"""An optimization disable by default that remove all assert from """An optimization disabled by default that removes all asserts from
the graph. the graph.
:note: See the :ref:`unsafe` section to know how to enable it. :note: See the :ref:`unsafe` section to know how to enable it.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论