Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
bc1392a3
提交
bc1392a3
authored
6月 07, 2015
作者:
David Warde-Farley
提交者:
Arnaud Bergeron
6月 22, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix flake errors.
上级
19e2d992
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
5 行增加
和
9 行删除
+5
-9
debugmode.py
theano/compile/debugmode.py
+1
-2
function.py
theano/compile/function.py
+0
-2
function_module.py
theano/compile/function_module.py
+2
-2
ops.py
theano/compile/ops.py
+2
-1
lazylinker_c.py
theano/gof/lazylinker_c.py
+0
-1
test_utils.py
theano/gof/tests/test_utils.py
+0
-1
没有找到文件。
theano/compile/debugmode.py
浏览文件 @
bc1392a3
...
@@ -20,8 +20,7 @@ from theano import gof
...
@@ -20,8 +20,7 @@ from theano import gof
from
theano.compat
import
get_unbound_function
from
theano.compat
import
get_unbound_function
from
six
import
string_types
,
iteritems
,
itervalues
from
six
import
string_types
,
iteritems
,
itervalues
from
six.moves
import
StringIO
,
xrange
from
six.moves
import
StringIO
,
xrange
from
theano.gof
import
(
FunctionGraph
,
graph
,
utils
,
link
,
from
theano.gof
import
(
graph
,
utils
,
link
,
ops_with_inner_function
)
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
,
BoolParam
,
IntParam
,
StrParam
)
StrParam
)
...
...
theano/compile/function.py
浏览文件 @
bc1392a3
"""Define the `function` function
"""Define the `function` function
"""
"""
__docformat__
=
"restructuredtext en"
import
six.moves.cPickle
as
pickle
import
six.moves.cPickle
as
pickle
import
logging
import
logging
...
...
theano/compile/function_module.py
浏览文件 @
bc1392a3
...
@@ -1014,8 +1014,8 @@ class FunctionMaker(object):
...
@@ -1014,8 +1014,8 @@ class FunctionMaker(object):
continue
continue
else
:
else
:
flags
=
[]
flags
=
[]
for
output_new
,
output_old
,
i
in
zip
(
for
i
,
(
output_new
,
output_old
)
in
enumerate
(
outputs_new
,
outputs_old
,
xrange
(
len
(
outputs_new
)
)):
zip
(
outputs_new
,
outputs_old
)):
print
(
'loop through outputs node for both graphs'
)
print
(
'loop through outputs node for both graphs'
)
graph_old
.
variables
=
set
(
gof
.
graph
.
variables
(
graph_old
.
variables
=
set
(
gof
.
graph
.
variables
(
graph_old
.
inputs
,
graph_old
.
outputs
))
graph_old
.
inputs
,
graph_old
.
outputs
))
...
...
theano/compile/ops.py
浏览文件 @
bc1392a3
...
@@ -571,7 +571,8 @@ def as_op(itypes, otypes, infer_shape=None):
...
@@ -571,7 +571,8 @@ def as_op(itypes, otypes, infer_shape=None):
itypes
=
list
(
itypes
)
itypes
=
list
(
itypes
)
otypes
=
list
(
otypes
)
otypes
=
list
(
otypes
)
if
infer_shape
is
not
None
and
not
isinstance
(
infer_shape
,
collections
.
Callable
):
if
infer_shape
is
not
None
and
not
isinstance
(
infer_shape
,
collections
.
Callable
):
raise
TypeError
(
"infer_shape needs to be a callable"
)
raise
TypeError
(
"infer_shape needs to be a callable"
)
def
make_op
(
fn
):
def
make_op
(
fn
):
...
...
theano/gof/lazylinker_c.py
浏览文件 @
bc1392a3
...
@@ -7,7 +7,6 @@ import warnings
...
@@ -7,7 +7,6 @@ import warnings
import
theano
import
theano
from
theano
import
config
from
theano
import
config
from
theano.compat
import
reload
from
theano.gof.compilelock
import
get_lock
,
release_lock
from
theano.gof.compilelock
import
get_lock
,
release_lock
from
theano.gof
import
cmodule
from
theano.gof
import
cmodule
import
imp
import
imp
...
...
theano/gof/tests/test_utils.py
浏览文件 @
bc1392a3
import
theano
import
theano
from
theano.gof.utils
import
give_variables_names
,
unique
,
remove
from
theano.gof.utils
import
give_variables_names
,
unique
,
remove
from
six.moves
import
xrange
def
test_give_variables_names
():
def
test_give_variables_names
():
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论