Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
9e313fda
提交
9e313fda
authored
1月 26, 2017
作者:
Frédéric Bastien
提交者:
GitHub
1月 26, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5435 from ReyhaneAskari/fix_max_use_ratio
changed optdb.max_use_ratio to 6
上级
c6af608a
a4a71248
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
12 行增加
和
7 行删除
+12
-7
jenkins_test1.sh
.jenkins/jenkins_test1.sh
+1
-1
jenkins_test2.sh
.jenkins/jenkins_test2.sh
+1
-1
configdefaults.py
theano/configdefaults.py
+1
-1
opt.py
theano/gof/opt.py
+8
-4
test_opt.py
theano/gof/tests/test_opt.py
+1
-0
没有找到文件。
.jenkins/jenkins_test1.sh
浏览文件 @
9e313fda
...
@@ -13,5 +13,5 @@ echo "===== Testing theano core"
...
@@ -13,5 +13,5 @@ echo "===== Testing theano core"
# Test theano core
# Test theano core
PARTS
=
"theano -e cuda -e gpuarray"
PARTS
=
"theano -e cuda -e gpuarray"
THEANO_PARAM
=
"
${
PARTS
}
--with-timer --timer-top-n 10 --with-xunit --xunit-file=theanocore_tests.xml"
THEANO_PARAM
=
"
${
PARTS
}
--with-timer --timer-top-n 10 --with-xunit --xunit-file=theanocore_tests.xml"
FLAGS
=
"mode=FAST_RUN,floatX=float32"
FLAGS
=
"mode=FAST_RUN,floatX=float32
,on_opt_error=raise,on_shape_error=raise
"
THEANO_FLAGS
=
${
FLAGS
}
bin/theano-nose
${
THEANO_PARAM
}
THEANO_FLAGS
=
${
FLAGS
}
bin/theano-nose
${
THEANO_PARAM
}
.jenkins/jenkins_test2.sh
浏览文件 @
9e313fda
...
@@ -76,5 +76,5 @@ THEANO_GPUARRAY_TESTS="theano/gpuarray/tests \
...
@@ -76,5 +76,5 @@ THEANO_GPUARRAY_TESTS="theano/gpuarray/tests \
theano/sandbox/tests/test_rng_mrg.py:test_consistency_GPUA_parallel
\
theano/sandbox/tests/test_rng_mrg.py:test_consistency_GPUA_parallel
\
theano/sandbox/tests/test_rng_mrg.py:test_GPUA_full_fill
\
theano/sandbox/tests/test_rng_mrg.py:test_GPUA_full_fill
\
theano/scan_module/tests/test_scan.py:T_Scan_Gpuarray"
theano/scan_module/tests/test_scan.py:T_Scan_Gpuarray"
FLAGS
=
"init_gpu_device=
$DEVICE
,gpuarray.preallocate=1000,mode=FAST_RUN"
FLAGS
=
"init_gpu_device=
$DEVICE
,gpuarray.preallocate=1000,mode=FAST_RUN
,on_opt_error=raise,on_shape_error=raise
"
THEANO_FLAGS
=
${
FLAGS
}
time
nosetests
-v
--with-xunit
--xunit-file
=
theanogpuarray_tests.xml
${
THEANO_GPUARRAY_TESTS
}
THEANO_FLAGS
=
${
FLAGS
}
time
nosetests
-v
--with-xunit
--xunit-file
=
theanogpuarray_tests.xml
${
THEANO_GPUARRAY_TESTS
}
theano/configdefaults.py
浏览文件 @
9e313fda
...
@@ -1111,7 +1111,7 @@ AddConfigVar('optdb.position_cutoff',
...
@@ -1111,7 +1111,7 @@ AddConfigVar('optdb.position_cutoff',
AddConfigVar
(
'optdb.max_use_ratio'
,
AddConfigVar
(
'optdb.max_use_ratio'
,
'A ratio that prevent infinite loop in EquilibriumOptimizer.'
,
'A ratio that prevent infinite loop in EquilibriumOptimizer.'
,
FloatParam
(
5
),
FloatParam
(
8
),
in_c_key
=
False
)
in_c_key
=
False
)
AddConfigVar
(
'gcc.cxxflags'
,
AddConfigVar
(
'gcc.cxxflags'
,
...
...
theano/gof/opt.py
浏览文件 @
9e313fda
...
@@ -2510,10 +2510,14 @@ class EquilibriumOptimizer(NavigatorOptimizer):
...
@@ -2510,10 +2510,14 @@ class EquilibriumOptimizer(NavigatorOptimizer):
end_nb_nodes
=
len
(
fgraph
.
apply_nodes
)
end_nb_nodes
=
len
(
fgraph
.
apply_nodes
)
if
max_use_abort
:
if
max_use_abort
:
_logger
.
error
(
"EquilibriumOptimizer max'ed out by '
%
s'"
%
opt_name
+
msg
=
(
"EquilibriumOptimizer max'ed out by '
%
s'"
%
opt_name
+
". You can safely raise the current threshold of "
+
". You can safely raise the current threshold of "
+
"
%
f with the theano flag 'optdb.max_use_ratio'."
%
"
%
f with the theano flag 'optdb.max_use_ratio'."
%
config
.
optdb
.
max_use_ratio
)
config
.
optdb
.
max_use_ratio
)
if
theano
.
config
.
on_opt_error
==
'raise'
:
raise
AssertionError
(
msg
)
else
:
_logger
.
error
(
msg
)
fgraph
.
remove_feature
(
change_tracker
)
fgraph
.
remove_feature
(
change_tracker
)
assert
len
(
loop_process_count
)
==
len
(
loop_timing
)
assert
len
(
loop_process_count
)
==
len
(
loop_timing
)
assert
len
(
loop_process_count
)
==
len
(
global_opt_timing
)
assert
len
(
loop_process_count
)
==
len
(
global_opt_timing
)
...
...
theano/gof/tests/test_opt.py
浏览文件 @
9e313fda
...
@@ -571,6 +571,7 @@ class TestEquilibrium(object):
...
@@ -571,6 +571,7 @@ class TestEquilibrium(object):
opt
.
optimize
(
g
)
opt
.
optimize
(
g
)
assert
str
(
g
)
==
'[Op2(x, y)]'
assert
str
(
g
)
==
'[Op2(x, y)]'
@theano.configparser.change_flags
(
on_opt_error
=
'ignore'
)
def
test_low_use_ratio
(
self
):
def
test_low_use_ratio
(
self
):
x
,
y
,
z
=
map
(
MyVariable
,
'xyz'
)
x
,
y
,
z
=
map
(
MyVariable
,
'xyz'
)
e
=
op3
(
op4
(
x
,
y
))
e
=
op3
(
op4
(
x
,
y
))
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论