Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
84784b45
提交
84784b45
authored
10月 18, 2013
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Document the new flops interface.
上级
450039f7
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
1 行删除
+19
-1
op.txt
doc/extending/op.txt
+10
-0
extending_theano.txt
doc/tutorial/extending_theano.txt
+9
-1
没有找到文件。
doc/extending/op.txt
浏览文件 @
84784b45
...
...
@@ -330,6 +330,16 @@ following methods:
shape without computing the output itself, potentially sparing you
a costly recomputation.
.. function:: flops(inputs, outputs)
Optional.
It is only used to have more information printed by the memory
profiler. It make it print the mega flops and giga flops per
second for each apply node. It take as inputs two list: one for the
inputs and one for the outputs. They contain one tuple with the
shape of the corresponding inputs/outputs.
.. function:: make_thunk(node, storage_map, compute_map, no_recycling)
TODO
...
...
doc/tutorial/extending_theano.txt
浏览文件 @
84784b45
...
...
@@ -86,7 +86,10 @@ Op Contract
def R_op(self, inputs, eval_points):
pass
def infer_shape(node, (i0_shapes, ...))
def infer_shape(node, (i0_shapes, ...)):
pass
def flops(self, inputs, outputs):
pass
.. ../extending/op.txt
...
...
@@ -116,6 +119,11 @@ The :func:`infer_shape` method allows to infer the shape of some variable, somew
middle of the computational graph without actually computing the outputs (when possible).
This could be helpful if one only needs the shape of the output instead of the actual outputs.
The :func:`flops` method allows to have the number of mega flops and
giga flops per second printed by the memory profiler. It take as
inputs two list: one for the inputs and one for the outputs. They
contain one tuple with the shape of the corresponding inputs/outputs.
The :func:`grad` method is required if you want to differentiate some cost whose expression
includes your op.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论