Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
3c75bce6
提交
3c75bce6
authored
6月 10, 2015
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3017 from nouiz/tests_stability
[TESTS] fix buidbot tests errors
上级
e526d59c
bea3f220
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
2 行删除
+12
-2
debugmode.py
theano/compile/debugmode.py
+7
-0
test_conv_cuda_ndarray.py
theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py
+2
-0
test_basic.py
theano/tensor/tests/test_basic.py
+3
-2
没有找到文件。
theano/compile/debugmode.py
浏览文件 @
3c75bce6
...
@@ -183,6 +183,13 @@ class BadThunkOutput(DebugModeError):
...
@@ -183,6 +183,13 @@ class BadThunkOutput(DebugModeError):
for
val
in
self
.
inputs_val
],
file
=
sio
)
for
val
in
self
.
inputs_val
],
file
=
sio
)
print
(
" Inputs Strides:"
,
[
getattr
(
val
,
'strides'
,
None
)
print
(
" Inputs Strides:"
,
[
getattr
(
val
,
'strides'
,
None
)
for
val
in
self
.
inputs_val
],
file
=
sio
)
for
val
in
self
.
inputs_val
],
file
=
sio
)
scalar_values
=
[]
for
ipt
in
self
.
inputs_val
:
if
getattr
(
ipt
,
"size"
,
-
1
)
<=
10
:
scalar_values
.
append
(
ipt
)
else
:
scalar_values
.
append
(
"not shown"
)
print
(
" Inputs values:
%
s"
%
scalar_values
,
file
=
sio
)
print
(
" Bad Variable:"
,
self
.
r
,
file
=
sio
)
print
(
" Bad Variable:"
,
self
.
r
,
file
=
sio
)
print
(
" thunk1 :"
,
self
.
thunk1
,
file
=
sio
)
print
(
" thunk1 :"
,
self
.
thunk1
,
file
=
sio
)
print
(
" thunk2 :"
,
self
.
thunk2
,
file
=
sio
)
print
(
" thunk2 :"
,
self
.
thunk2
,
file
=
sio
)
...
...
theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py
浏览文件 @
3c75bce6
...
@@ -413,6 +413,8 @@ def test_dnn_valid():
...
@@ -413,6 +413,8 @@ def test_dnn_valid():
def
test_dnn_valid_err
():
def
test_dnn_valid_err
():
if
not
cuda
.
dnn
.
dnn_available
():
raise
SkipTest
(
cuda
.
dnn
.
dnn_available
.
msg
)
assert_raises
(
ValueError
,
_params_allgood
,
(
1
,
2
,
4
,
4
),
(
1
,
1
,
2
,
2
),
assert_raises
(
ValueError
,
_params_allgood
,
(
1
,
2
,
4
,
4
),
(
1
,
1
,
2
,
2
),
'valid'
,
theano_mode
=
theano_mode
.
including
(
"cudnn"
),
'valid'
,
theano_mode
=
theano_mode
.
including
(
"cudnn"
),
cls
=
DnnBase
)
cls
=
DnnBase
)
...
...
theano/tensor/tests/test_basic.py
浏览文件 @
3c75bce6
...
@@ -1130,7 +1130,8 @@ _grad_broadcast_unary_abs1_no_complex = dict(
...
@@ -1130,7 +1130,8 @@ _grad_broadcast_unary_abs1_no_complex = dict(
)
)
_grad_broadcast_unary_0_2_no_complex
=
dict
(
_grad_broadcast_unary_0_2_no_complex
=
dict
(
normal
=
[
numpy
.
asarray
(
rand_ranged
(
0
,
2
,
(
2
,
3
)),
dtype
=
floatX
)],
# Don't go too close to 2 for tests in float32
normal
=
[
numpy
.
asarray
(
rand_ranged
(
0
,
1.9
,
(
2
,
3
)),
dtype
=
floatX
)],
)
)
# inplace ops when the input is integer and the output is float*
# inplace ops when the input is integer and the output is float*
...
@@ -1760,7 +1761,7 @@ _good_broadcast_unary_gammaln = dict(
...
@@ -1760,7 +1761,7 @@ _good_broadcast_unary_gammaln = dict(
empty
=
(
numpy
.
asarray
([],
dtype
=
config
.
floatX
),),)
empty
=
(
numpy
.
asarray
([],
dtype
=
config
.
floatX
),),)
_grad_broadcast_unary_gammaln
=
dict
(
_grad_broadcast_unary_gammaln
=
dict
(
# smaller range as our grad method does not estimate it well enough.
# smaller range as our grad method does not estimate it well enough.
normal
=
(
rand_ranged
(
1e-
8
,
8
,
(
2
,
3
)),),)
normal
=
(
rand_ranged
(
1e-
1
,
8
,
(
2
,
3
)),),)
GammaTester
=
makeBroadcastTester
(
GammaTester
=
makeBroadcastTester
(
op
=
tensor
.
gamma
,
op
=
tensor
.
gamma
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论