Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
6cc53c22
提交
6cc53c22
authored
2月 22, 2017
作者:
Simon Lefrancois
提交者:
GitHub
2月 22, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5596 from slefrancois/doc_v_fix
Fix doc version switch and unverbose PR GPU tests
上级
6df026b4
d59edfc2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
20 行增加
和
17 行删除
+20
-17
jenkins_test2.sh
.jenkins/jenkins_test2.sh
+1
-1
version_switch.js
doc/.static/version_switch.js
+19
-16
没有找到文件。
.jenkins/jenkins_test2.sh
浏览文件 @
6cc53c22
...
@@ -77,4 +77,4 @@ THEANO_GPUARRAY_TESTS="theano/gpuarray/tests \
...
@@ -77,4 +77,4 @@ THEANO_GPUARRAY_TESTS="theano/gpuarray/tests \
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,on_opt_error=raise,on_shape_error=raise,cmodule.age_thresh_use=604800"
FLAGS
=
"init_gpu_device=
$DEVICE
,gpuarray.preallocate=1000,mode=FAST_RUN,on_opt_error=raise,on_shape_error=raise,cmodule.age_thresh_use=604800"
THEANO_FLAGS
=
${
FLAGS
}
time
nosetests
-
v
-
-with-xunit
--xunit-file
=
theanogpuarray_tests.xml
${
THEANO_GPUARRAY_TESTS
}
THEANO_FLAGS
=
${
FLAGS
}
time
nosetests
--with-xunit
--xunit-file
=
theanogpuarray_tests.xml
${
THEANO_GPUARRAY_TESTS
}
doc/.static/version_switch.js
浏览文件 @
6cc53c22
...
@@ -20,13 +20,13 @@
...
@@ -20,13 +20,13 @@
// Get current version
// Get current version
var
current_version
=
url
.
match
(
version_regex
)[
0
]
var
current_version
=
url
.
match
(
version_regex
)[
0
]
current_version
=
current_version
.
substring
(
1
,
current_version
.
length
-
1
)
current_version
=
current_version
.
substring
(
1
,
current_version
.
length
-
1
)
// Add current version in case versions.json is unavailable
// Add current version in case versions.json is unavailable
if
(
current_version
!=
"theano"
&&
current_version
!=
"html"
)
{
if
(
current_version
!=
"theano"
&&
current_version
!=
"html"
)
{
ver
=
current_version
.
replace
(
"theano_versions/"
,
""
)
ver
=
current_version
.
replace
(
"theano_versions/"
,
""
)
versions_dir
[
ver
]
=
current_version
versions_dir
[
ver
]
=
current_version
}
}
function
build_vswitch
()
{
function
build_vswitch
()
{
// Build HTML string for version selector, based on ReadTheDocs theme's versions.html
// Build HTML string for version selector, based on ReadTheDocs theme's versions.html
...
@@ -38,33 +38,33 @@
...
@@ -38,33 +38,33 @@
vswitch
.
push
(
'<span class="rst-current-version" data-toggle="rst-current-version">'
);
vswitch
.
push
(
'<span class="rst-current-version" data-toggle="rst-current-version">'
);
vswitch
.
push
(
'<span class="fa fa-book"></span>'
);
vswitch
.
push
(
'<span class="fa fa-book"></span>'
);
vswitch
.
push
(
'v: '
,
vlabel
,
' '
);
vswitch
.
push
(
'v: '
,
vlabel
,
' '
);
vswitch
.
push
(
'<span class="fa fa-caret-down"></span>'
);
vswitch
.
push
(
'<span class="fa fa-caret-down"></span>'
);
vswitch
.
push
(
'</span>'
);
vswitch
.
push
(
'</span>'
);
vswitch
.
push
(
'<div class="rst-other-versions">'
);
vswitch
.
push
(
'<dl>'
);
vswitch
.
push
(
'<div class="rst-other-versions">'
);
vswitch
.
push
(
'<dl>'
);
vswitch
.
push
(
'<dt>Versions</dt>'
);
vswitch
.
push
(
'<dt>Versions</dt>'
);
for
(
var
version
in
versions_dir
)
{
for
(
var
version
in
versions_dir
)
{
var
new_url
=
url
.
replace
(
url
.
match
(
version_regex
)[
0
],
'/'
+
versions_dir
[
version
]
+
'/'
);
var
new_url
=
url
.
replace
(
url
.
match
(
version_regex
)[
0
],
'/'
+
versions_dir
[
version
]
+
'/'
);
vswitch
.
push
(
'<dd><a href=
\
"'
,
new_url
,
'
\
">'
,
version
,
'</a></dd>'
);
vswitch
.
push
(
'<dd><a href=
\
"'
,
new_url
,
'
\
">'
,
version
,
'</a></dd>'
);
}
}
vswitch
.
push
(
'</dl>'
);
vswitch
.
push
(
'</dl>'
);
vswitch
.
push
(
'<dl>'
);
vswitch
.
push
(
'<dl>'
);
vswitch
.
push
(
'<dt>Downloads</dt>'
);
vswitch
.
push
(
'<dt>Downloads</dt>'
);
var
pdf_url
=
root_url
+
current_version
+
"/theano.pdf"
var
pdf_url
=
root_url
+
current_version
+
"/theano.pdf"
vswitch
.
push
(
'<dd><a href=
\
"'
,
pdf_url
,
'
\
">'
,
'PDF'
,
'</a></dd>'
);
vswitch
.
push
(
'<dd><a href=
\
"'
,
pdf_url
,
'
\
">'
,
'PDF'
,
'</a></dd>'
);
vswitch
.
push
(
'</dl>'
);
vswitch
.
push
(
'</dl>'
);
vswitch
.
push
(
'<dl>'
);
vswitch
.
push
(
'<dl>'
);
vswitch
.
push
(
'<dt>On GitHub</dt>'
);
vswitch
.
push
(
'<dt>On GitHub</dt>'
);
var
git_master
=
"https://github.com/Theano/Theano"
var
git_master
=
"https://github.com/Theano/Theano"
vswitch
.
push
(
'<dd><a href=
\
"'
,
git_master
+
'
\
">'
,
'Fork me'
,
'</a></dd>'
);
vswitch
.
push
(
'<dd><a href=
\
"'
,
git_master
+
'
\
">'
,
'Fork me'
,
'</a></dd>'
);
vswitch
.
push
(
'</dl>'
);
vswitch
.
push
(
'</dl>'
);
vswitch
.
push
(
'</div>'
);
vswitch
.
push
(
'</div>'
);
vswitch
.
push
(
'</div>'
);
vswitch
.
push
(
'</div>'
);
return
vswitch
.
join
(
''
);
return
vswitch
.
join
(
''
);
}
}
...
@@ -75,10 +75,13 @@
...
@@ -75,10 +75,13 @@
if
(
vlabel
==
'theano'
)
{
if
(
vlabel
==
'theano'
)
{
vlabel
=
'release'
;
vlabel
=
'release'
;
}
}
else
if
(
vlabel
!=
"dev"
)
{
vlabel
=
''
;
}
var
vswitch
=
[
'<div class="rst-versions-up" data-toggle="rst-versions" role="note" aria-label="versions" align=center>'
];
var
vswitch
=
[
'<div class="rst-versions-up" data-toggle="rst-versions" role="note" aria-label="versions" align=center>'
];
vswitch
.
push
(
'<span class="rst-current-version" data-toggle="rst-current-version">'
);
vswitch
.
push
(
'<span class="rst-current-version" data-toggle="rst-current-version">'
);
vswitch
.
push
(
vlabel
);
vswitch
.
push
(
vlabel
);
vswitch
.
push
(
'<span class="fa fa-caret-down"></span>'
);
vswitch
.
push
(
'
<span class="fa fa-caret-down"></span>'
);
vswitch
.
push
(
'</span>'
);
vswitch
.
push
(
'</span>'
);
vswitch
.
push
(
'</div>'
);
vswitch
.
push
(
'</div>'
);
return
vswitch
.
join
(
''
);
return
vswitch
.
join
(
''
);
...
@@ -99,6 +102,6 @@
...
@@ -99,6 +102,6 @@
$
(
'.version_switcher_placeholder'
).
html
(
build_vswitch
());
$
(
'.version_switcher_placeholder'
).
html
(
build_vswitch
());
$
(
'.version_switcher_placeholder_up'
).
html
(
build_vswitch_up
());
$
(
'.version_switcher_placeholder_up'
).
html
(
build_vswitch_up
());
});
});
}
}
});
});
})();
})();
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论