提交 6cc53c22 authored 作者: Simon Lefrancois's avatar Simon Lefrancois 提交者: GitHub

Merge pull request #5596 from slefrancois/doc_v_fix

Fix doc version switch and unverbose PR GPU tests
...@@ -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}
...@@ -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('');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论