Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
4daeb07f
提交
4daeb07f
authored
10月 29, 2009
作者:
James Bergstra
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added todo in tensor.opt
上级
9dc99a12
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
3 行删除
+19
-3
opt.py
theano/tensor/opt.py
+19
-3
没有找到文件。
theano/tensor/opt.py
浏览文件 @
4daeb07f
...
@@ -1238,9 +1238,25 @@ def local_elemwise_fusion(node):
...
@@ -1238,9 +1238,25 @@ def local_elemwise_fusion(node):
For mixed dtype, we let the Compise op do the cast. It let the C compile do the cast.
For mixed dtype, we let the Compise op do the cast. It let the C compile do the cast.
The number of dimension is validated at call time by theano itself.
The number of dimension is validated at call time by theano itself.
TODO:The broadcast flag?
"""
"""
#TODO: Merge with multiple output to merge when an inputs have multiple clients. This can't be done with a local optimiser.
# META TODO: PUT THESE THINGS IN TRAC, NOT TODO NOTES!!
# TODO: use broadcast flag?
# TODO: don't do this optimization as a localOptimizer. Analyze the graph in terms of
# elemwise subgraphs, and then replace each subgraph with a Composite version.
# TODO: use malloc and copy to transfer arguments that don't fit within the parameter space
# of 256 bytes
#
# TODO: Merge with multiple output to merge when an inputs have multiple clients. This can't be done with a local optimiser.
# TODO: Related: Support composites with multiple outputs
# TODO: Use Composite to combine Elemwise and Reduce operations. We have to loop over the
# data anyway... might as well sum it up while we're at it (this can be trickier than i'm
# making it seound here. The data-traversal should be done contiguously, and the summing-up
# might not be easy or worthwhile if the summation axis doesn't line up with a contiguous
# dimension)
if
not
isinstance
(
node
.
op
,
T
.
Elemwise
):
if
not
isinstance
(
node
.
op
,
T
.
Elemwise
):
return
False
return
False
...
@@ -1279,7 +1295,7 @@ def local_elemwise_fusion(node):
...
@@ -1279,7 +1295,7 @@ def local_elemwise_fusion(node):
s_inputs
.
append
(
s
)
s_inputs
.
append
(
s
)
s_g
.
append
(
s
)
s_g
.
append
(
s
)
#if no inputs have are an elemwise, the
ir
is nothing to fuse.
#if no inputs have are an elemwise, the
re
is nothing to fuse.
if
nb_elemwise
==
0
:
if
nb_elemwise
==
0
:
# print "local_elemwise_fusion: no elemwise in inputs. Nothing to fuse."
# print "local_elemwise_fusion: no elemwise in inputs. Nothing to fuse."
return
False
return
False
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论