提交 8b9f9cf7 authored 作者: abalkin's avatar abalkin

A few typos/grammar fixes.

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