Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
1563ea38
提交
1563ea38
authored
9月 16, 2014
作者:
Frédéric Bastien
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2103 from f0k/convop-grad-shapes
Propagate shape information to ConvOp gradients
上级
50968f7a
1acdafac
全部展开
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
0 行删除
+7
-0
opt.py
theano/sandbox/cuda/opt.py
+7
-0
conv.py
theano/tensor/nnet/conv.py
+0
-0
没有找到文件。
theano/sandbox/cuda/opt.py
浏览文件 @
1563ea38
...
@@ -1699,6 +1699,13 @@ def local_gpualloc_memset_0(node):
...
@@ -1699,6 +1699,13 @@ def local_gpualloc_memset_0(node):
inp
.
data
.
size
==
1
and
inp
.
data
.
size
==
1
and
(
numpy
.
asarray
(
inp
.
data
)
==
0
)
.
all
()):
(
numpy
.
asarray
(
inp
.
data
)
==
0
)
.
all
()):
new_out
=
GpuAlloc
(
memset_0
=
True
)(
*
node
.
inputs
)
new_out
=
GpuAlloc
(
memset_0
=
True
)(
*
node
.
inputs
)
old_bcast
=
node
.
outputs
[
0
]
.
type
.
broadcastable
if
new_out
.
type
.
broadcastable
!=
old_bcast
:
# check that we did not try discarding a broadcastable dimension
assert
not
any
(
b_old
and
not
b_new
for
b_old
,
b_new
in
zip
(
old_bcast
,
new_out
.
type
.
broadcastable
))
# force old broadcasting pattern; we must not change it here
new_out
=
tensor
.
patternbroadcast
(
new_out
,
old_bcast
)
return
[
new_out
]
return
[
new_out
]
...
...
theano/tensor/nnet/conv.py
浏览文件 @
1563ea38
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论