Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
9b0c950a
提交
9b0c950a
authored
2月 15, 2016
作者:
AdeB
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unused imports
上级
325ce519
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
9 行增加
和
21 行删除
+9
-21
debugmode.py
theano/compile/debugmode.py
+1
-2
mode.py
theano/compile/mode.py
+1
-1
nanguardmode.py
theano/compile/nanguardmode.py
+1
-1
profilemode.py
theano/compile/profilemode.py
+1
-1
configdefaults.py
theano/configdefaults.py
+2
-0
cc.py
theano/gof/cc.py
+0
-5
cmodule.py
theano/gof/cmodule.py
+0
-2
compiledir.py
theano/gof/compiledir.py
+0
-1
compilelock.py
theano/gof/compilelock.py
+0
-1
optdb.py
theano/gof/optdb.py
+0
-3
test_compiledir.py
theano/gof/tests/test_compiledir.py
+1
-1
vm.py
theano/gof/vm.py
+1
-2
sigm.py
theano/tensor/nnet/sigm.py
+0
-1
opt.py
theano/tensor/opt.py
+1
-0
没有找到文件。
theano/compile/debugmode.py
浏览文件 @
9b0c950a
...
@@ -23,8 +23,7 @@ from six import string_types, iteritems, itervalues
...
@@ -23,8 +23,7 @@ from six import string_types, iteritems, itervalues
from
six.moves
import
StringIO
,
xrange
from
six.moves
import
StringIO
,
xrange
from
theano.gof
import
(
graph
,
utils
,
link
,
ops_with_inner_function
)
from
theano.gof
import
(
graph
,
utils
,
link
,
ops_with_inner_function
)
from
theano.gof.link
import
raise_with_op
from
theano.gof.link
import
raise_with_op
from
theano.configparser
import
(
config
,
AddConfigVar
,
BoolParam
,
IntParam
,
from
theano.configparser
import
(
config
,
AddConfigVar
,
IntParam
,
StrParam
)
StrParam
)
from
theano.compile.function_module
import
(
from
theano.compile.function_module
import
(
FunctionMaker
,
Function
,
infer_reuse_pattern
,
FunctionMaker
,
Function
,
infer_reuse_pattern
,
SymbolicInputKit
,
SymbolicOutput
,
Supervisor
,
std_fgraph
)
SymbolicInputKit
,
SymbolicOutput
,
Supervisor
,
std_fgraph
)
...
...
theano/compile/mode.py
浏览文件 @
9b0c950a
...
@@ -10,7 +10,7 @@ import numpy
...
@@ -10,7 +10,7 @@ import numpy
import
theano
import
theano
from
theano
import
gof
from
theano
import
gof
import
theano.gof.vm
import
theano.gof.vm
from
theano.configparser
import
config
,
AddConfigVar
,
StrParam
from
theano.configparser
import
config
from
theano.compile.ops
import
_output_guard
from
theano.compile.ops
import
_output_guard
from
six
import
string_types
from
six
import
string_types
...
...
theano/compile/nanguardmode.py
浏览文件 @
9b0c950a
...
@@ -6,7 +6,7 @@ from six.moves import StringIO
...
@@ -6,7 +6,7 @@ from six.moves import StringIO
import
numpy
as
np
import
numpy
as
np
import
theano
import
theano
from
theano.configparser
import
config
,
AddConfigVar
,
BoolParam
,
EnumStr
from
theano.configparser
import
config
import
theano.tensor
as
T
import
theano.tensor
as
T
import
theano.sandbox.cuda
as
cuda
import
theano.sandbox.cuda
as
cuda
from
theano.compile
import
Mode
from
theano.compile
import
Mode
...
...
theano/compile/profilemode.py
浏览文件 @
9b0c950a
...
@@ -11,7 +11,7 @@ from six import string_types, iteritems, itervalues
...
@@ -11,7 +11,7 @@ from six import string_types, iteritems, itervalues
from
theano.compile.mode
import
(
Mode
,
register_mode
,
from
theano.compile.mode
import
(
Mode
,
register_mode
,
predefined_modes
,
predefined_linkers
,
predefined_modes
,
predefined_linkers
,
predefined_optimizers
)
predefined_optimizers
)
from
theano.configparser
import
config
,
AddConfigVar
,
IntParam
,
BoolParam
from
theano.configparser
import
config
from
theano.compile.function_module
import
FunctionMaker
from
theano.compile.function_module
import
FunctionMaker
from
.profiling
import
ProfileStats
from
.profiling
import
ProfileStats
...
...
theano/configdefaults.py
浏览文件 @
9b0c950a
...
@@ -1327,6 +1327,7 @@ AddConfigVar("compiledir_format",
...
@@ -1327,6 +1327,7 @@ AddConfigVar("compiledir_format",
StrParam
(
default_compiledir_format
,
allow_override
=
False
),
StrParam
(
default_compiledir_format
,
allow_override
=
False
),
in_c_key
=
False
)
in_c_key
=
False
)
def
default_compiledirname
():
def
default_compiledirname
():
formatted
=
theano
.
config
.
compiledir_format
%
compiledir_format_dict
formatted
=
theano
.
config
.
compiledir_format
%
compiledir_format_dict
safe
=
re
.
sub
(
"[
\
(
\
)
\
s,]+"
,
"_"
,
formatted
)
safe
=
re
.
sub
(
"[
\
(
\
)
\
s,]+"
,
"_"
,
formatted
)
...
@@ -1417,6 +1418,7 @@ AddConfigVar(
...
@@ -1417,6 +1418,7 @@ AddConfigVar(
allow_override
=
False
),
allow_override
=
False
),
in_c_key
=
False
)
in_c_key
=
False
)
def
default_compiledir
():
def
default_compiledir
():
return
os
.
path
.
join
(
return
os
.
path
.
join
(
theano
.
config
.
base_compiledir
,
theano
.
config
.
base_compiledir
,
...
...
theano/gof/cc.py
浏览文件 @
9b0c950a
...
@@ -20,11 +20,6 @@ from theano.compat import izip
...
@@ -20,11 +20,6 @@ from theano.compat import izip
from
six
import
string_types
,
reraise
from
six
import
string_types
,
reraise
from
six.moves
import
StringIO
,
xrange
from
six.moves
import
StringIO
,
xrange
# Note that we need to do this before importing cutils, since when there is
# no theano cache dir initialized yet, importing cutils may require compilation
# of cutils_ext.
from
theano.configparser
import
AddConfigVar
,
StrParam
# gof imports
# gof imports
from
theano.gof
import
graph
from
theano.gof
import
graph
from
theano.gof
import
link
from
theano.gof
import
link
...
...
theano/gof/cmodule.py
浏览文件 @
9b0c950a
...
@@ -34,8 +34,6 @@ from theano.misc.windows import (subprocess_Popen,
...
@@ -34,8 +34,6 @@ from theano.misc.windows import (subprocess_Popen,
from
theano.gof
import
compilelock
from
theano.gof
import
compilelock
from
theano.configdefaults
import
gcc_version_str
,
local_bitwidth
from
theano.configdefaults
import
gcc_version_str
,
local_bitwidth
from
theano.configparser
import
AddConfigVar
,
BoolParam
importlib
=
None
importlib
=
None
try
:
try
:
import
importlib
import
importlib
...
...
theano/gof/compiledir.py
浏览文件 @
9b0c950a
...
@@ -10,7 +10,6 @@ import theano
...
@@ -10,7 +10,6 @@ import theano
from
six
import
string_types
,
iteritems
from
six
import
string_types
,
iteritems
from
theano.configparser
import
config
from
theano.configparser
import
config
from
theano.gof.utils
import
flatten
from
theano.gof.utils
import
flatten
from
theano.misc.windows
import
output_subprocess_Popen
_logger
=
logging
.
getLogger
(
"theano.gof.compiledir"
)
_logger
=
logging
.
getLogger
(
"theano.gof.compiledir"
)
...
...
theano/gof/compilelock.py
浏览文件 @
9b0c950a
...
@@ -12,7 +12,6 @@ from contextlib import contextmanager
...
@@ -12,7 +12,6 @@ from contextlib import contextmanager
import
numpy
as
np
import
numpy
as
np
from
theano
import
config
from
theano
import
config
from
theano.configparser
import
AddConfigVar
,
IntParam
random
=
np
.
random
.
RandomState
([
2015
,
8
,
2
])
random
=
np
.
random
.
RandomState
([
2015
,
8
,
2
])
...
...
theano/gof/optdb.py
浏览文件 @
9b0c950a
...
@@ -2,13 +2,10 @@ from __future__ import print_function
...
@@ -2,13 +2,10 @@ from __future__ import print_function
import
copy
import
copy
import
sys
import
sys
import
numpy
from
theano.compat
import
DefaultOrderedDict
from
theano.compat
import
DefaultOrderedDict
from
theano.misc.ordered_set
import
OrderedSet
from
theano.misc.ordered_set
import
OrderedSet
from
six
import
StringIO
from
six
import
StringIO
from
theano.gof
import
opt
from
theano.gof
import
opt
from
theano.configparser
import
AddConfigVar
,
FloatParam
from
theano
import
config
from
theano
import
config
...
...
theano/gof/tests/test_compiledir.py
浏览文件 @
9b0c950a
from
theano.
gof.compiledir
import
short_platform
from
theano.
configdefaults
import
short_platform
def
test_short_platform
():
def
test_short_platform
():
...
...
theano/gof/vm.py
浏览文件 @
9b0c950a
...
@@ -13,8 +13,7 @@ import sys
...
@@ -13,8 +13,7 @@ import sys
import
time
import
time
import
warnings
import
warnings
from
theano.configparser
import
(
config
,
AddConfigVar
,
from
theano.configparser
import
(
config
,
_config_var_list
)
BoolParam
,
ConfigParam
,
_config_var_list
)
import
theano.gof.cmodule
import
theano.gof.cmodule
...
...
theano/tensor/nnet/sigm.py
浏览文件 @
9b0c950a
...
@@ -14,7 +14,6 @@ import numpy
...
@@ -14,7 +14,6 @@ import numpy
import
theano
import
theano
from
theano
import
config
,
gof
,
printing
,
scalar
from
theano
import
config
,
gof
,
printing
,
scalar
from
theano.compat
import
imap
from
theano.compat
import
imap
from
theano.configparser
import
AddConfigVar
,
BoolParam
from
theano.printing
import
pprint
from
theano.printing
import
pprint
from
theano.tensor
import
basic
as
tensor
from
theano.tensor
import
basic
as
tensor
from
theano.tensor
import
elemwise
,
opt
,
NotScalarConstantError
from
theano.tensor
import
elemwise
,
opt
,
NotScalarConstantError
...
...
theano/tensor/opt.py
浏览文件 @
9b0c950a
...
@@ -1596,6 +1596,7 @@ local_elemwise_alloc = register_specialize(
...
@@ -1596,6 +1596,7 @@ local_elemwise_alloc = register_specialize(
local_elemwise_alloc_op
(
T
.
Elemwise
,
T
.
Alloc
,
T
.
DimShuffle
)),
local_elemwise_alloc_op
(
T
.
Elemwise
,
T
.
Alloc
,
T
.
DimShuffle
)),
'local_alloc_elemwise'
)
'local_alloc_elemwise'
)
@gof.local_optimizer
([
T
.
Elemwise
])
@gof.local_optimizer
([
T
.
Elemwise
])
def
local_fill_sink
(
node
):
def
local_fill_sink
(
node
):
"""
"""
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论