提交 918c1cdc authored 作者: Frederic's avatar Frederic

Added some documentation on OutputGuard for new c types.

上级 d1631389
...@@ -480,3 +480,19 @@ Final version ...@@ -480,3 +480,19 @@ Final version
return "" return ""
double = Double() double = Double()
Output Guard
============
We have an internal Op called OutputGuard. It is used for some
verification of inplace/view Op. It have a c implementation that
increment/decrement Python reference counts. If your type represent an
Python object, OutputGuard c code should work with your type. You must
tell OutputGuard to generate c code when working with your
type. Otherwise, it will use python code. You tell him by executing
this:
.. code-block:: python
theano.compile.mode.register_OutputGuard_c_code(YOUR_TYPE_CLASS)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论