Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
1103933a
提交
1103933a
authored
7月 04, 2017
作者:
Frédéric Bastien
提交者:
GitHub
7月 04, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6101 from nouiz/time_travis2
Bump min Python version to 3.4 (fix slowness travis in Python 3.3)
上级
8bd6e9a3
49cedc1d
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
16 行增加
和
16 行删除
+16
-16
.travis.yml
.travis.yml
+6
-6
travis_install.sh
.travis/travis_install.sh
+3
-3
dev_start_guide.txt
doc/dev_start_guide.txt
+2
-2
faq.txt
doc/faq.txt
+2
-1
requirements.inc
doc/requirements.inc
+2
-2
setup.py
setup.py
+0
-1
profiling.py
theano/compile/profiling.py
+1
-1
没有找到文件。
.travis.yml
浏览文件 @
1103933a
...
...
@@ -12,7 +12,7 @@ cache:
language
:
python
python
:
-
"
2.7"
-
"
3.
3
"
-
"
3.
4
"
# NB:
# In before_install and install sections below,
...
...
@@ -40,7 +40,7 @@ install:
-
pip install . --no-deps --upgrade
-
pip install flake8-future-import nose-parameterized==0.5.0 sphinx_rtd_theme
# nose-exclude plugin allow us to tell nosetests to exclude folder with --exclude-dir=path/to/directory.
-
pip install nose-exclude
-
pip install nose-exclude
nose-timer
# command to run tests
env
:
...
...
@@ -54,11 +54,11 @@ env:
matrix
:
fast_finish
:
true
include
:
-
python
:
"
3.
3
"
-
python
:
"
3.
4
"
env
:
PART="--exclude-dir=theano/tensor -e test_flake8.py ." THEANO_FLAGS="mode=FAST_COMPILE"
-
python
:
"
3.
3
"
-
python
:
"
3.
4
"
env
:
PART="theano/tensor --exclude-dir=theano/tensor/nnet" THEANO_FLAGS="mode=FAST_COMPILE"
-
python
:
"
3.
3
"
-
python
:
"
3.
4
"
env
:
PART="theano/tensor/nnet" THEANO_FLAGS="mode=FAST_COMPILE"
-
python
:
"
2.7"
env
:
PART="--exclude-dir=theano/tensor -e test_flake8.py ." THEANO_FLAGS="mode=FAST_COMPILE,floatX=float32"
...
...
@@ -82,7 +82,7 @@ script:
-
cd -; cd Theano
-
python -c 'import theano; print(theano.config.__str__(print_doc=False))'
-
python -c 'import theano; assert(theano.config.blas.ldflags != "")'
-
theano-nose -v $PART
-
theano-nose -v
--with-timer --timer-top-n 10
$PART
-
if [[ $DOC == "1" ]]; then python doc/scripts/docgen.py --nopdf --check; fi
-
if [[ $DOC == "1" ]]; then python doc/scripts/docgen.py --test --check; fi
...
...
.travis/travis_install.sh
浏览文件 @
1103933a
#!/usr/bin/env bash
# In Python 3.
3
, we test the min version of NumPy and SciPy. In Python 2.7, we test more recent version.
# In Python 3.
4
, we test the min version of NumPy and SciPy. In Python 2.7, we test more recent version.
if
test
-e
$HOME
/miniconda2/envs/pyenv
;
then
echo
"pyenv already exists."
else
echo
"Creating pyenv."
if
[[
$TRAVIS_PYTHON_VERSION
==
'2.7'
]]
;
then
conda create
--yes
-q
-n
pyenv
python
=
2.7
;
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
'3.
3'
]]
;
then
conda create
--yes
-q
-n
pyenv
python
=
3.3
;
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
'3.
4'
]]
;
then
conda create
--yes
-q
-n
pyenv
python
=
3.4
;
fi
fi
source
activate pyenv
if
[[
$TRAVIS_PYTHON_VERSION
==
'2.7'
]]
;
then
conda
install
--yes
-q
mkl
numpy
=
1.9.1
scipy
=
0.14.0
nose
=
1.3.0 pip
flake8
=
2.3
six
=
1.9.0
pep8
=
1.6.2
pyflakes
=
0.8.1
sphinx
=
1.5.1 mkl-service
libgfortran
=
1
;
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
'3.
3'
]]
;
then
conda
install
--yes
-q
mkl
numpy
=
1.9.1
scipy
=
0.14.0
nose
=
1.3.4 pip
flake8
=
2.3
six
=
1.9.0
pep8
=
1.6.2
pyflakes
=
0.8.1
"sphinx<=1.5.1"
mkl-service
;
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
'3.
4'
]]
;
then
conda
install
--yes
-q
mkl
numpy
=
1.9.1
scipy
=
0.14.0
nose
=
1.3.4 pip
flake8
=
2.3
six
=
1.9.0
pep8
=
1.6.2
pyflakes
=
0.8.1
sphinx
=
1.5.1 mkl-service
libgfortran
=
1
;
fi
source
deactivate
doc/dev_start_guide.txt
浏览文件 @
1103933a
...
...
@@ -55,8 +55,8 @@ Requirements for Quality Contributions
* All the code should be properly tested.
* The code should be compatible with Python 2.7 and above, as well as
Python
3.3
and above (using `six` if needed).
* The code should be compatible with Python 2.7 and above, as well as
Python 3.4
and above (using `six` if needed).
* All the code should respect the
`PEP8 Code Style Guide <http://www.python.org/dev/peps/pep-0008>`_.
...
...
doc/faq.txt
浏览文件 @
1103933a
...
...
@@ -8,7 +8,8 @@ Frequently Asked Questions
Does Theano support Python 3?
------------------------------
We support both Python 2 >= 2.7 and Python 3 >= 3.3.
We support both Python 2 >= 2.7 and Python 3 >= 3.4.
Output slight numerical difference
----------------------------------
...
...
doc/requirements.inc
浏览文件 @
1103933a
...
...
@@ -14,10 +14,10 @@ Requirements
..
_pycuda
:
https
://
mathema
.
tician
.
de
/
software
/
pycuda
/
..
_skcuda
:
http
://
scikit
-
cuda
.
readthedocs
.
io
/
en
/
latest
/
Python_
==
2.7
*
or
(
>=
3.
3
and
<
3.6
)
Python_
==
2.7
*
or
(
>=
3.
4
and
<
3.6
)
|
PythonDistRecommended
|.
Python
2.4
was
supported
up
to
and
including
the
release
0.6
.
Python
2.6
was
supported
up
to
and
including
the
release
0.8
.
2.
Python
3
is
supported
past
the
3.3
release
.
release
0.8
.
2.
Python
3
.3
was
supported
up
to
and
including
release
0.9
.
`NumPy <http://numpy.scipy.org/>`
_
>=
1.9
.
1
<=
1.12
Earlier
versions
could
work
,
but
we
don
’
t
test
it
.
...
...
setup.py
浏览文件 @
1103933a
...
...
@@ -33,7 +33,6 @@ Operating System :: MacOS
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
"""
...
...
theano/compile/profiling.py
浏览文件 @
1103933a
...
...
@@ -93,7 +93,7 @@ def _atexit_print_fn():
"linker_make_thunk_time"
]:
cum_attr
=
getattr
(
cum
,
attr
)
for
key
,
val
in
iteritems
(
getattr
(
ps
,
attr
)):
assert
key
not
in
cum_attr
assert
key
not
in
cum_attr
,
(
key
,
cum_attr
)
cum_attr
[
key
]
=
val
if
cum
.
optimizer_profile
and
ps
.
optimizer_profile
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论