Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
2e06c87e
提交
2e06c87e
authored
11月 03, 2016
作者:
Frédéric Bastien
提交者:
GitHub
11月 03, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5173 from lamblin/fix_debugmode
Fix some failing tests in debugmode
上级
5979772d
45662adf
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
0 行删除
+9
-0
opt.py
theano/gof/opt.py
+4
-0
conv3d2d.py
theano/tensor/nnet/conv3d2d.py
+1
-0
test_elemwise.py
theano/tensor/tests/test_elemwise.py
+4
-0
没有找到文件。
theano/gof/opt.py
浏览文件 @
2e06c87e
...
@@ -2855,6 +2855,10 @@ def copy_stack_trace(from_var, to_var):
...
@@ -2855,6 +2855,10 @@ def copy_stack_trace(from_var, to_var):
# so just store that particular stack trace
# so just store that particular stack trace
tr
=
getattr
(
from_var
.
tag
,
'trace'
,
[])
tr
=
getattr
(
from_var
.
tag
,
'trace'
,
[])
if
tr
and
isinstance
(
tr
[
0
],
tuple
):
# There was one single stack trace, we encapsulate it in a list
tr
=
[
tr
]
# Copy over stack traces to to_var
# Copy over stack traces to to_var
if
type
(
to_var
)
is
list
:
if
type
(
to_var
)
is
list
:
# Copy over stack traces from from_var to each variable in
# Copy over stack traces from from_var to each variable in
...
...
theano/tensor/nnet/conv3d2d.py
浏览文件 @
2e06c87e
...
@@ -26,6 +26,7 @@ def get_diagonal_subtensor_view(x, i0, i1):
...
@@ -26,6 +26,7 @@ def get_diagonal_subtensor_view(x, i0, i1):
idx
[
i0
]
=
slice
(
x
.
shape
[
i1
]
-
1
,
None
,
None
)
idx
[
i0
]
=
slice
(
x
.
shape
[
i1
]
-
1
,
None
,
None
)
xview
=
x
.
__getitem__
(
tuple
(
idx
))
xview
=
x
.
__getitem__
(
tuple
(
idx
))
strides
=
list
(
xview
.
strides
)
strides
=
list
(
xview
.
strides
)
if
x
.
shape
[
i1
]
!=
1
:
strides
[
i1
]
-=
strides
[
i0
]
strides
[
i1
]
-=
strides
[
i0
]
xview
.
strides
=
strides
xview
.
strides
=
strides
return
xview
return
xview
...
...
theano/tensor/tests/test_elemwise.py
浏览文件 @
2e06c87e
...
@@ -870,6 +870,10 @@ class T_reduce_dtype(unittest.TestCase):
...
@@ -870,6 +870,10 @@ class T_reduce_dtype(unittest.TestCase):
(
topo
,
output_dtype
)
(
topo
,
output_dtype
)
data
=
numpy
.
random
.
rand
(
3
,
4
)
*
10
data
=
numpy
.
random
.
rand
(
3
,
4
)
*
10
data
=
data
.
astype
(
input_dtype
)
data
=
data
.
astype
(
input_dtype
)
if
output_dtype
==
'float16'
and
method
==
'prod'
:
# We will likely get something infinite,
# and DebugMode will complain.
data
=
data
[
0
:
1
]
f
(
data
)
f
(
data
)
if
"complex"
in
input_dtype
:
if
"complex"
in
input_dtype
:
continue
continue
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论