提交 ae997472 authored 作者: Frederic's avatar Frederic

Fix link and better doc for scalar operation.

上级 4e519a90
...@@ -4,20 +4,22 @@ ...@@ -4,20 +4,22 @@
Implementing some specific Op Implementing some specific Op
============================= =============================
This page guide on the implementation of some specify type of Op: This page guide on the implementation of some specify type of Ops.
scalar operation and random distribution.
This is useful as for scalar, it is easy to add just the scalar
operation have it being reused with the elemwise/reduction code
generated and optimization.
For the random number, it explain the different implementation For the random number, it explain the different implementation
strategy. strategy.
.. scalar_ops: .. _scalar_ops:
Scalar Operation Scalar/Elemwise/Reduction Operation
================ ===================================
Implementing a Theano scalar allow that scalar operation to be reused
by our elemwise operation. If the scalar operation it have c code, the
elemwise implementation it will automaticaly have c code too. This
will enable the fusion of elemwise operation with your new scalar
operation. It can also reuse the GPU elemwise code. It is similar for
reduction operation.
There is those 2 PR that add `GammaLn and Psi There is those 2 PR that add `GammaLn and Psi
<https://github.com/Theano/Theano/pull/686/>`_ and `Gamma <https://github.com/Theano/Theano/pull/686/>`_ and `Gamma
...@@ -58,7 +60,7 @@ Here is some code that allows the Op to be optional: ...@@ -58,7 +60,7 @@ Here is some code that allows the Op to be optional:
raise SkipTest("SciPy needed for the SomeOp op.") raise SkipTest("SciPy needed for the SomeOp op.")
... ...
.. sparse_ops: .. _sparse_ops:
Sparse Sparse
====== ======
...@@ -143,7 +145,7 @@ needed sparse variable and data, you can use ...@@ -143,7 +145,7 @@ needed sparse variable and data, you can use
take many paramters including parameters for the format (csr or csc), the shape, the take many paramters including parameters for the format (csr or csc), the shape, the
dtype, to have explicit 0 and to have unsorted indices. dtype, to have explicit 0 and to have unsorted indices.
.. random_ops: .. _random_ops:
Random distribution Random distribution
=================== ===================
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论