Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
296293c8
提交
296293c8
authored
11月 12, 2015
作者:
carriepl
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3620 from nouiz/debugmode
[CRASH] Debugmode
上级
9e00a99a
a9b35ffe
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
21 行增加
和
22 行删除
+21
-22
debugmode.py
theano/compile/debugmode.py
+1
-4
configdefaults.py
theano/configdefaults.py
+17
-0
check_blas.py
theano/misc/check_blas.py
+2
-1
unittest_tools.py
theano/tests/unittest_tools.py
+1
-17
没有找到文件。
theano/compile/debugmode.py
浏览文件 @
296293c8
...
@@ -1939,10 +1939,7 @@ class _Linker(gof.link.LocalLinker):
...
@@ -1939,10 +1939,7 @@ class _Linker(gof.link.LocalLinker):
if
r
not
in
fgraph
.
inputs
]
if
r
not
in
fgraph
.
inputs
]
# Precompute some things for storage pre-allocation
# Precompute some things for storage pre-allocation
try
:
def_val
=
int
(
config
.
unittests
.
rseed
)
def_val
=
int
(
config
.
unittests
.
rseed
)
except
ValueError
:
def_val
=
666
#####
#####
# This is the function that runs when you evaluate the graph
# This is the function that runs when you evaluate the graph
...
...
theano/configdefaults.py
浏览文件 @
296293c8
...
@@ -748,3 +748,20 @@ AddConfigVar(
...
@@ -748,3 +748,20 @@ AddConfigVar(
"the first optimization, and could possibly still contains some bugs. "
"the first optimization, and could possibly still contains some bugs. "
"Use at your own risks."
,
"Use at your own risks."
,
BoolParam
(
False
))
BoolParam
(
False
))
def
good_seed_param
(
seed
):
if
seed
==
"random"
:
return
True
try
:
int
(
seed
)
except
Exception
:
return
False
return
True
AddConfigVar
(
'unittests.rseed'
,
"Seed to use for randomized unit tests. "
"Special value 'random' means using a seed of None."
,
StrParam
(
666
,
is_valid
=
good_seed_param
),
in_c_key
=
False
)
theano/misc/check_blas.py
浏览文件 @
296293c8
...
@@ -244,6 +244,7 @@ if __name__ == "__main__":
...
@@ -244,6 +244,7 @@ if __name__ == "__main__":
cuda version 7.5 7.0 6.5
cuda version 7.5 7.0 6.5
gpu
gpu
k80 0.96s
K6000/NOECC 0.69s
K6000/NOECC 0.69s
K40 0.88s
K40 0.88s
K20m/ECC
K20m/ECC
...
@@ -257,7 +258,7 @@ if __name__ == "__main__":
...
@@ -257,7 +258,7 @@ if __name__ == "__main__":
C1060
C1060
K600
K600
GTX Titan X
0.47s
GTX Titan X
0.45s
0.47s
GTX Titan Black 0.64s
GTX Titan Black 0.64s
GTX Titan(D15U-50)
GTX Titan(D15U-50)
GTX 780
GTX 780
...
...
theano/tests/unittest_tools.py
浏览文件 @
296293c8
...
@@ -18,7 +18,7 @@ import numpy
...
@@ -18,7 +18,7 @@ import numpy
import
theano
import
theano
import
theano.tensor
as
T
import
theano.tensor
as
T
from
theano.configparser
import
config
,
AddConfigVar
,
StrParam
from
theano.configparser
import
config
try
:
try
:
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
except
ImportError
:
except
ImportError
:
...
@@ -29,22 +29,6 @@ except ImportError:
...
@@ -29,22 +29,6 @@ except ImportError:
_logger
=
logging
.
getLogger
(
"theano.tests.unittest_tools"
)
_logger
=
logging
.
getLogger
(
"theano.tests.unittest_tools"
)
def
good_seed_param
(
seed
):
if
seed
==
"random"
:
return
True
try
:
int
(
seed
)
except
Exception
:
return
False
return
True
AddConfigVar
(
'unittests.rseed'
,
"Seed to use for randomized unit tests. "
"Special value 'random' means using a seed of None."
,
StrParam
(
666
,
is_valid
=
good_seed_param
),
in_c_key
=
False
)
def
fetch_seed
(
pseed
=
None
):
def
fetch_seed
(
pseed
=
None
):
"""
"""
Returns the seed to use for running the unit tests.
Returns the seed to use for running the unit tests.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论