Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ae997472
提交
ae997472
authored
12月 13, 2013
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix link and better doc for scalar operation.
上级
4e519a90
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
13 行增加
和
11 行删除
+13
-11
other_ops.txt
doc/extending/other_ops.txt
+13
-11
没有找到文件。
doc/extending/other_ops.txt
浏览文件 @
ae997472
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论