Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e3c95974
提交
e3c95974
authored
10月 13, 2017
作者:
Frédéric Bastien
提交者:
GitHub
10月 13, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6472 from nouiz/user_err
Add good user error in corner case that are hard to debug.
上级
0dbe46da
823b6e3c
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
34 行增加
和
19 行删除
+34
-19
.travis.yml
.travis.yml
+3
-5
how_to_release.txt
doc/internal/how_to_release.txt
+1
-1
setup.py
setup.py
+10
-2
__init__.py
theano/__init__.py
+0
-4
cmodule.py
theano/gof/cmodule.py
+4
-1
dnn.py
theano/gpuarray/dnn.py
+7
-1
version.py
theano/version.py
+9
-5
没有找到文件。
.travis.yml
浏览文件 @
e3c95974
...
@@ -110,14 +110,12 @@ script:
...
@@ -110,14 +110,12 @@ script:
-
free -m
-
free -m
-
df -h
-
df -h
-
ulimit -a
-
ulimit -a
# Move out of Theano so the import will use the installed version
-
cd ..
# Move to the path of the installed version
-
cd $(python -c 'import theano; import os; print(os.path.split(theano.__file__)[0])')
-
echo "$PART"
-
echo "$PART"
-
cd -; cd Theano
# Print information to help debug problems
-
python -c 'import theano; print(theano.__version__)'
-
python -c 'import theano; print(theano.config.__str__(print_doc=False))'
-
python -c 'import theano; print(theano.config.__str__(print_doc=False))'
-
python -c 'import theano; assert(theano.config.blas.ldflags != "")'
-
python -c 'import theano; assert(theano.config.blas.ldflags != "")'
# Run tests for the given part
-
theano-nose -v --with-timer --timer-top-n 10 $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 --nopdf --check; fi
-
if [[ $DOC == "1" ]]; then python doc/scripts/docgen.py --test --check; fi
-
if [[ $DOC == "1" ]]; then python doc/scripts/docgen.py --test --check; fi
...
...
doc/internal/how_to_release.txt
浏览文件 @
e3c95974
...
@@ -37,7 +37,7 @@ Update the year in the ``Theano/LICENSE.txt`` file too, if necessary.
...
@@ -37,7 +37,7 @@ Update the year in the ``Theano/LICENSE.txt`` file too, if necessary.
``NEWS.txt`` usually contains the name and date of the release, change them
``NEWS.txt`` usually contains the name and date of the release, change them
too.
too.
Update the fallback version in ``
setup
.py``.
Update the fallback version in ``
theano/version
.py``.
Update the code and the documentation for the theano flags
Update the code and the documentation for the theano flags
``warn.ignore_bug_before`` to accept the new version. You must modify the
``warn.ignore_bug_before`` to accept the new version. You must modify the
...
...
setup.py
浏览文件 @
e3c95974
...
@@ -16,8 +16,6 @@ except ImportError:
...
@@ -16,8 +16,6 @@ except ImportError:
import
versioneer
import
versioneer
FALLBACK_VERSION
=
"0.10.0beta3+unknown"
CLASSIFIERS
=
"""
\
CLASSIFIERS
=
"""
\
Development Status :: 4 - Beta
Development Status :: 4 - Beta
Intended Audience :: Education
Intended Audience :: Education
...
@@ -74,6 +72,16 @@ def find_packages(where='.', exclude=()):
...
@@ -74,6 +72,16 @@ def find_packages(where='.', exclude=()):
version_data
=
versioneer
.
get_versions
()
version_data
=
versioneer
.
get_versions
()
if
version_data
[
'error'
]
is
not
None
:
if
version_data
[
'error'
]
is
not
None
:
# Get the fallback version
# We can't import theano.version as it isn't yet installed, so parse it.
fname
=
os
.
path
.
join
(
os
.
path
.
split
(
__file__
)[
0
],
"theano"
,
"version.py"
)
with
open
(
fname
,
"r"
)
as
f
:
lines
=
f
.
readlines
()
lines
=
[
l
for
l
in
lines
if
l
.
startswith
(
"FALLBACK_VERSION"
)]
assert
len
(
lines
)
==
1
FALLBACK_VERSION
=
lines
[
0
]
.
split
(
"="
)[
1
]
.
strip
()
.
strip
(
'""'
)
version_data
[
'version'
]
=
FALLBACK_VERSION
version_data
[
'version'
]
=
FALLBACK_VERSION
...
...
theano/__init__.py
浏览文件 @
e3c95974
...
@@ -245,7 +245,3 @@ def sparse_grad(var):
...
@@ -245,7 +245,3 @@ def sparse_grad(var):
__import__
(
'theano.tensor.shared_randomstreams'
)
__import__
(
'theano.tensor.shared_randomstreams'
)
from
._version
import
get_versions
__version__
=
get_versions
()[
'version'
]
del
get_versions
theano/gof/cmodule.py
浏览文件 @
e3c95974
...
@@ -1897,7 +1897,10 @@ class GCC_compiler(Compiler):
...
@@ -1897,7 +1897,10 @@ class GCC_compiler(Compiler):
@staticmethod
@staticmethod
def
compile_args
(
march_flags
=
True
):
def
compile_args
(
march_flags
=
True
):
cxxflags
=
[
flag
for
flag
in
config
.
gcc
.
cxxflags
.
split
(
' '
)
if
flag
]
cxxflags
=
[
flag
for
flag
in
config
.
gcc
.
cxxflags
.
split
(
' '
)
if
flag
]
if
"-fopenmp"
in
cxxflags
:
raise
ValueError
(
"Do not use -fopenmp in Theano flag gcc.cxxflags."
" To enable OpenMP, use the Theano flag openmp=True"
)
# Add the equivalent of -march=native flag. We can't use
# Add the equivalent of -march=native flag. We can't use
# -march=native as when the compiledir is shared by multiple
# -march=native as when the compiledir is shared by multiple
# computers (for example, if the home directory is on NFS), this
# computers (for example, if the home directory is on NFS), this
...
...
theano/gpuarray/dnn.py
浏览文件 @
e3c95974
...
@@ -222,10 +222,16 @@ def dnn_available(context_name):
...
@@ -222,10 +222,16 @@ def dnn_available(context_name):
# This is a hack because bin_id is in the from of
# This is a hack because bin_id is in the from of
# "<something>_<major><minor>" for cuda devices.
# "<something>_<major><minor>" for cuda devices.
if
ctx
.
bin_id
[
-
2
:]
<
b
'30'
:
if
int
(
ctx
.
bin_id
[
-
2
:])
<
30
:
dnn_available
.
msg
=
"Device not supported"
dnn_available
.
msg
=
"Device not supported"
return
False
return
False
# On V100, cuDNN lower then 7002 don't raise error but
# takes hours to load or execute! So raise a good user error.
if
version
()
<
7002
:
if
int
(
ctx
.
bin_id
[
-
2
:])
>=
70
:
dnn_available
.
msg
=
"Use cuDNN 7.0.2 or higher for Volta."
return
False
return
True
return
True
dnn_available
.
msg
=
None
dnn_available
.
msg
=
None
...
...
theano/version.py
浏览文件 @
e3c95974
...
@@ -2,24 +2,28 @@ from __future__ import absolute_import, print_function, division
...
@@ -2,24 +2,28 @@ from __future__ import absolute_import, print_function, division
from
theano._version
import
get_versions
from
theano._version
import
get_versions
FALLBACK_VERSION
=
"0.10.0beta3+unknown"
info
=
get_versions
()
info
=
get_versions
()
if
info
[
'error'
]
is
not
None
:
info
[
'version'
]
=
FALLBACK_VERSION
full_version
=
info
[
'version'
]
full_version
=
info
[
'version'
]
git_revision
=
info
[
'full-revisionid'
]
git_revision
=
info
[
'full-revisionid'
]
del
info
,
get_versions
del
get_versions
short_version
=
full_version
.
split
(
'+'
)[
0
]
short_version
=
full_version
.
split
(
'+'
)[
0
]
# This tries to catch a tag like beta2, rc1, ...
# This tries to catch a tag like beta2, rc1, ...
try
:
try
:
int
(
short_version
.
split
(
'.'
)[
2
])
int
(
short_version
.
split
(
'.'
)[
2
])
release
=
True
release
=
True
except
ValueError
:
except
ValueError
:
release
=
False
release
=
False
except
IndexError
:
print
(
short_version
)
raise
if
release
:
if
release
and
info
[
'error'
]
is
None
:
version
=
short_version
version
=
short_version
else
:
else
:
version
=
full_version
version
=
full_version
del
info
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论