Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d8460c50
提交
d8460c50
authored
3月 18, 2009
作者:
James Bergstra
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
removed tensorop.txt from docs
上级
6ed851b6
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
0 行增加
和
58 行删除
+0
-58
index.txt
doc/tutorials/index.txt
+0
-1
tensorop.txt
doc/tutorials/tensorop.txt
+0
-57
没有找到文件。
doc/tutorials/index.txt
浏览文件 @
d8460c50
...
@@ -5,7 +5,6 @@ Tutorials
...
@@ -5,7 +5,6 @@ Tutorials
.. toctree::
.. toctree::
tensorop
tensoroptools
tensoroptools
howtotest
howtotest
doc/tutorials/tensorop.txt
deleted
100644 → 0
浏览文件 @
6ed851b6
.. _tensoroptutorial:
===============================
How to make a new Op on tensors
===============================
This tutorial aims to explain how to create a new operation operating
on numpy's ndarrays and using Theano's NDArrayType. It is optional but
recommended to go through the :ref:`advtutorial` beforehand, which
explains more in detail the purpose of each of the methods you will
define here.
The operation we will implement will be multiplication of two matrices
of doubles. Of course, this operation already exists in Theano, but so
do all simple operations and a tutorial works better when all concepts
are kept as simple as possible. We will proceed by steps: the first
step is to implement the Op in Python using numpy's multiplication
operator. In the second step, we will extend our Op to (optionally)
operate inplace on its inputs. In the third step, which is the most
difficult, we will give our Op a solid C implementation.
Implementing a new Op in Python
===============================
You are required to define two
methods - one to create the :ref:`apply` node every time your Op is
applied to some inputs, declaring the outputs in the process and
another to operate on the inputs. There is also one optional method
you may define which will compute the gradient of your Op.
Extending the Op to work inplace
================================
WRITEME
Writing a C implementation
==========================
WRITEME
What's next
===========
Theano provides several special Ops that can make your job
easier. Check the :ref:`tensoroptools` to see if you can leverage them
to do what you need.
It is highly recommended that you read the :ref:`opchecklist` before
making any new Op. This can avoid you a lot of problems.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论