提交 19615825 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merge pull request #1117 from abalkin/doc-fixes

A few typos/grammar fixes.
......@@ -6,7 +6,7 @@ Views and inplace operations
============================
Theano allows the definition of Ops which return a :term:`view` on one
of their inputs or operates :term:`inplace` on one or several
of their inputs or operate :term:`inplace` on one or several
inputs. This allows more efficient operations on numpy's ``ndarray``
data type than would be possible otherwise.
However, in order to work correctly, these Ops need to
......@@ -201,17 +201,17 @@ input(s)'s memory). From there, go to the previous section.
Inplace optimization and DebugMode
==================================
It is recommended that during the graph construction, all op are not inplace.
Then an optimization replace them with an inplace one. Currently DebugMode check
all optimization that was tryed even if they got rejected. One reason an inplace
optimization can get rejected is that their is another op that already do an
inplace on the same input. A second reason to reject an inplace optimization is
if it introduce cycle into the graph.
It is recommended that during the graph construction, all Ops are not inplace.
Then an optimization replaces them with inplace ones. Currently DebugMode checks
all optimizations that were tried even if they got rejected. One reason an inplace
optimization can get rejected is that there is another Op that is already being applied
inplace on the same input. Another reason to reject an inplace optimization is
if it would introduce a cycle into the graph.
To allow using DebugMode more often, we can pre-check that our optimization will
get rejected in many case.(not the cycle reason). For this you can use the
theano.gof.destroyhandler.fast_inplace_check() function that will tell you which
op can be used.
get rejected in many cases (not the cycle reason). For this you can use the
``theano.gof.destroyhandler.fast_inplace_check()`` function that will tell you which
Op can be performed inplace.
.. _optdb:
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论