Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
c0e864dd
提交
c0e864dd
authored
12月 17, 2015
作者:
Martin Arjovsky
提交者:
AdeB
2月 12, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
config stuff
上级
be629ae2
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
13 行增加
和
9 行删除
+13
-9
configdefaults.py
theano/configdefaults.py
+13
-9
没有找到文件。
theano/configdefaults.py
浏览文件 @
c0e864dd
...
@@ -6,7 +6,6 @@ import textwrap
...
@@ -6,7 +6,6 @@ import textwrap
import
re
import
re
import
theano
import
theano
from
theano
import
config
from
theano.configparser
import
(
AddConfigVar
,
BoolParam
,
ConfigParam
,
EnumStr
,
from
theano.configparser
import
(
AddConfigVar
,
BoolParam
,
ConfigParam
,
EnumStr
,
FloatParam
,
IntParam
,
StrParam
,
FloatParam
,
IntParam
,
StrParam
,
TheanoConfigParser
)
TheanoConfigParser
)
...
@@ -320,9 +319,9 @@ AddConfigVar('dnn.conv.precision',
...
@@ -320,9 +319,9 @@ AddConfigVar('dnn.conv.precision',
def
default_dnn_path
(
suffix
):
def
default_dnn_path
(
suffix
):
def
f
(
suffix
=
suffix
):
def
f
(
suffix
=
suffix
):
if
config
.
cuda
.
root
==
''
:
if
theano
.
config
.
cuda
.
root
==
''
:
return
''
return
''
return
os
.
path
.
join
(
config
.
cuda
.
root
,
suffix
)
return
os
.
path
.
join
(
theano
.
config
.
cuda
.
root
,
suffix
)
return
f
return
f
AddConfigVar
(
'dnn.include_path'
,
AddConfigVar
(
'dnn.include_path'
,
...
@@ -931,7 +930,8 @@ AddConfigVar('DebugMode.patience',
...
@@ -931,7 +930,8 @@ AddConfigVar('DebugMode.patience',
AddConfigVar
(
'DebugMode.check_c'
,
AddConfigVar
(
'DebugMode.check_c'
,
"Run C implementations where possible"
,
"Run C implementations where possible"
,
BoolParam
(
bool
(
theano
.
config
.
cxx
)),
BoolParam
(
lambda
:
bool
(
theano
.
config
.
cxx
)),
in_c_key
=
False
)
in_c_key
=
False
)
AddConfigVar
(
'DebugMode.check_py'
,
AddConfigVar
(
'DebugMode.check_py'
,
...
@@ -1173,7 +1173,7 @@ AddConfigVar('compile.wait',
...
@@ -1173,7 +1173,7 @@ AddConfigVar('compile.wait',
def
_timeout_default
():
def
_timeout_default
():
return
config
.
compile
.
wait
*
24
return
theano
.
config
.
compile
.
wait
*
24
AddConfigVar
(
'compile.timeout'
,
AddConfigVar
(
'compile.timeout'
,
"""In seconds, time that a process will wait before deciding to
"""In seconds, time that a process will wait before deciding to
...
@@ -1287,7 +1287,7 @@ AddConfigVar("compiledir_format",
...
@@ -1287,7 +1287,7 @@ AddConfigVar("compiledir_format",
in_c_key
=
False
)
in_c_key
=
False
)
def
default_compiledirname
():
def
default_compiledirname
():
formatted
=
config
.
compiledir_format
%
compiledir_format_dict
formatted
=
theano
.
config
.
compiledir_format
%
compiledir_format_dict
safe
=
re
.
sub
(
"[
\
(
\
)
\
s,]+"
,
"_"
,
formatted
)
safe
=
re
.
sub
(
"[
\
(
\
)
\
s,]+"
,
"_"
,
formatted
)
return
safe
return
safe
...
@@ -1376,13 +1376,17 @@ AddConfigVar(
...
@@ -1376,13 +1376,17 @@ AddConfigVar(
allow_override
=
False
),
allow_override
=
False
),
in_c_key
=
False
)
in_c_key
=
False
)
def
default_compiledir
():
return
os
.
path
.
join
(
theano
.
config
.
base_compiledir
,
default_compiledirname
())
AddConfigVar
(
AddConfigVar
(
'compiledir'
,
'compiledir'
,
"platform-dependent cache directory for compiled modules"
,
"platform-dependent cache directory for compiled modules"
,
ConfigParam
(
ConfigParam
(
os
.
path
.
join
(
default_compiledir
,
config
.
base_compiledir
,
default_compiledirname
()),
filter
=
filter_compiledir
,
filter
=
filter_compiledir
,
allow_override
=
False
),
allow_override
=
False
),
in_c_key
=
False
)
in_c_key
=
False
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论