Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
3098ee05
提交
3098ee05
authored
2月 19, 2016
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move leftover flags that seemed forgotten.
上级
8d680018
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
4 行增加
和
43 行删除
+4
-43
debugmode.py
theano/compile/debugmode.py
+2
-36
profiling.py
theano/compile/profiling.py
+0
-1
configdefaults.py
theano/configdefaults.py
+0
-0
__init__.py
theano/sandbox/cuda/__init__.py
+1
-2
__init__.py
theano/sandbox/gpuarray/__init__.py
+1
-1
scan_op.py
theano/scan_module/scan_op.py
+0
-3
blas.py
theano/tensor/blas.py
+0
-0
没有找到文件。
theano/compile/debugmode.py
浏览文件 @
3098ee05
...
@@ -17,13 +17,12 @@ from theano.compat import izip
...
@@ -17,13 +17,12 @@ from theano.compat import izip
import
numpy
import
numpy
import
theano
import
theano
from
theano
import
gof
from
theano
import
gof
,
config
from
theano.compat
import
get_unbound_function
from
theano.compat
import
get_unbound_function
from
six
import
string_types
,
iteritems
,
itervalues
from
six
import
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
,
IntParam
,
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
)
...
@@ -31,39 +30,6 @@ from theano.compile.mode import Mode, register_mode
...
@@ -31,39 +30,6 @@ from theano.compile.mode import Mode, register_mode
from
theano.compile.ops
import
OutputGuard
from
theano.compile.ops
import
OutputGuard
__docformat__
=
"restructuredtext en"
__docformat__
=
"restructuredtext en"
def
is_valid_check_preallocated_output_param
(
param
):
if
not
isinstance
(
param
,
string_types
):
return
False
valid
=
[
"initial"
,
"previous"
,
"c_contiguous"
,
"f_contiguous"
,
"strided"
,
"wrong_size"
,
"ALL"
,
""
]
for
p
in
param
.
split
(
":"
):
if
p
not
in
valid
:
return
False
return
True
AddConfigVar
(
'DebugMode.check_preallocated_output'
,
(
'Test thunks with pre-allocated memory as output storage. '
'This is a list of strings separated by ":". Valid values are: '
'"initial" (initial storage in storage map, happens with Scan),'
'"previous" (previously-returned memory), '
'"c_contiguous", "f_contiguous", '
'"strided" (positive and negative strides), '
'"wrong_size" (larger and smaller dimensions), and '
'"ALL" (all of the above).'
),
StrParam
(
''
,
is_valid
=
is_valid_check_preallocated_output_param
),
in_c_key
=
False
)
AddConfigVar
(
'DebugMode.check_preallocated_output_ndim'
,
(
'When testing with "strided" preallocated output memory, '
'test all combinations of strides over that number of '
'(inner-most) dimensions. You may want to reduce that number '
'to reduce memory or time usage, but it is advised to keep a '
'minimum of 2.'
),
IntParam
(
4
,
lambda
i
:
i
>
0
),
in_c_key
=
False
)
_logger
=
logging
.
getLogger
(
"theano.compile.debugmode"
)
_logger
=
logging
.
getLogger
(
"theano.compile.debugmode"
)
...
...
theano/compile/profiling.py
浏览文件 @
3098ee05
...
@@ -29,7 +29,6 @@ import numpy
...
@@ -29,7 +29,6 @@ import numpy
import
theano
import
theano
from
six
import
iteritems
from
six
import
iteritems
from
theano.gof
import
graph
from
theano.gof
import
graph
from
theano.configparser
import
AddConfigVar
,
BoolParam
,
IntParam
,
StrParam
theano_imported_time
=
time
.
time
()
theano_imported_time
=
time
.
time
()
config
=
theano
.
config
config
=
theano
.
config
...
...
theano/configdefaults.py
浏览文件 @
3098ee05
差异被折叠。
点击展开。
theano/sandbox/cuda/__init__.py
浏览文件 @
3098ee05
...
@@ -14,8 +14,7 @@ from theano.compile import optdb
...
@@ -14,8 +14,7 @@ from theano.compile import optdb
from
theano.gof
import
EquilibriumDB
,
SequenceDB
from
theano.gof
import
EquilibriumDB
,
SequenceDB
from
theano.gof.cmodule
import
get_lib_extension
from
theano.gof.cmodule
import
get_lib_extension
from
theano.gof.compilelock
import
get_lock
,
release_lock
from
theano.gof.compilelock
import
get_lock
,
release_lock
from
theano.configparser
import
(
from
theano
import
config
config
,
AddConfigVar
,
BoolParam
,
FloatParam
,
StrParam
)
from
.
import
nvcc_compiler
from
.
import
nvcc_compiler
from
theano.tensor.basic
import
register_transfer
from
theano.tensor.basic
import
register_transfer
...
...
theano/sandbox/gpuarray/__init__.py
浏览文件 @
3098ee05
...
@@ -4,7 +4,7 @@ import sys
...
@@ -4,7 +4,7 @@ import sys
import
warnings
import
warnings
import
theano
import
theano
from
theano
.configparser
import
config
,
AddConfigVar
,
BoolParam
from
theano
import
config
from
theano.compile
import
optdb
from
theano.compile
import
optdb
from
theano.tensor.basic
import
register_transfer
from
theano.tensor.basic
import
register_transfer
...
...
theano/scan_module/scan_op.py
浏览文件 @
3098ee05
...
@@ -87,9 +87,6 @@ from theano.scan_module.scan_utils import safe_new, forced_replace
...
@@ -87,9 +87,6 @@ from theano.scan_module.scan_utils import safe_new, forced_replace
_logger
=
logging
.
getLogger
(
'theano.scan_module.scan_op'
)
_logger
=
logging
.
getLogger
(
'theano.scan_module.scan_op'
)
from
theano.configparser
import
AddConfigVar
,
BoolParam
class
Scan
(
PureOp
):
class
Scan
(
PureOp
):
"""
"""
...
...
theano/tensor/blas.py
浏览文件 @
3098ee05
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论