Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
cf0d8464
提交
cf0d8464
authored
6月 25, 2015
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix python3 problems.
上级
99d29798
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
16 行删除
+15
-16
profilemode.py
theano/compile/profilemode.py
+14
-14
optdb.py
theano/gof/optdb.py
+1
-1
test_flake8.py
theano/tests/test_flake8.py
+0
-1
没有找到文件。
theano/compile/profilemode.py
浏览文件 @
cf0d8464
...
...
@@ -661,9 +661,9 @@ Test them first, as they are not guaranteed to always provide a speedup.""")
if
not
config
.
lib
.
amdlibm
and
any
([
exp_float32_op
(
a
.
op
)
and
a
.
inputs
[
0
]
.
dtype
==
'float32'
for
i
,
a
in
apply_time
]):
print
(
" - With the default gcc libm, exp in float32 is slower "
"than in float64! Try Theano flag floatX=float64, or "
"install amdlibm and set the theano flags lib.amdlibm=True"
)
print
(
" - With the default gcc libm, exp in float32 is slower "
"than in float64! Try Theano flag floatX=float64, or "
"install amdlibm and set the theano flags lib.amdlibm=True"
)
printed_tip
=
True
# tip 4
...
...
@@ -672,11 +672,11 @@ Test them first, as they are not guaranteed to always provide a speedup.""")
if
(
isinstance
(
node
.
op
,
T
.
Dot
)
and
all
([
len
(
i
.
type
.
broadcastable
)
==
2
for
i
in
node
.
inputs
])):
print
(
(
" - You have a dot operation that was not optimized to"
" dot22 (which is faster). Make sure the inputs are "
"float32 or float64, and are the same for both inputs. "
"Currently they are:
%
s"
%
[
i
.
type
for
i
in
node
.
inputs
])
)
print
(
" - You have a dot operation that was not optimized to"
" dot22 (which is faster). Make sure the inputs are "
"float32 or float64, and are the same for both inputs. "
"Currently they are:
%
s"
%
[
i
.
type
for
i
in
node
.
inputs
]
)
printed_tip
=
True
# tip 5
...
...
@@ -684,13 +684,13 @@ Test them first, as they are not guaranteed to always provide a speedup.""")
node
=
a
[
1
]
if
isinstance
(
node
.
op
,
RandomFunction
):
printed_tip
=
True
print
(
" - Replace the default random number generator by "
"'from theano.sandbox.rng_mrg import MRG_RandomStreams "
"as RandomStreams', as this is is faster. It is still "
"experimental, but seems to work correctly."
)
print
(
" - Replace the default random number generator by "
"'from theano.sandbox.rng_mrg import MRG_RandomStreams "
"as RandomStreams', as this is is faster. It is still "
"experimental, but seems to work correctly."
)
if
config
.
device
.
startswith
(
"gpu"
):
print
(
" - MRG_RandomStreams is the only random number"
" generator supported on the GPU."
)
print
(
" - MRG_RandomStreams is the only random number"
" generator supported on the GPU."
)
break
if
not
printed_tip
:
...
...
theano/gof/optdb.py
浏览文件 @
cf0d8464
...
...
@@ -312,7 +312,7 @@ class SequenceDB(DB):
positions
=
list
(
self
.
__position__
.
items
())
def
c
(
a
,
b
):
return
cmp
(
a
[
1
],
b
[
1
]
)
return
((
a
>
b
)
-
(
a
<
b
)
)
positions
.
sort
(
c
)
print
(
" position"
,
positions
,
file
=
stream
)
...
...
theano/tests/test_flake8.py
浏览文件 @
cf0d8464
...
...
@@ -6,7 +6,6 @@ from nose.plugins.skip import SkipTest
import
os
from
fnmatch
import
fnmatch
import
theano
from
theano.compat
import
PY3
try
:
import
flake8.engine
import
flake8.main
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论