Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
e0520e4e
提交
e0520e4e
authored
10月 28, 2011
作者:
Razvan Pascanu
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #170 from delallea/typos
Typos
上级
7893b6d3
1eb4d687
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
20 行增加
和
19 行删除
+20
-19
NEWS.txt
NEWS.txt
+1
-1
NEWS.txt
doc/NEWS.txt
+1
-1
cmodule.py
theano/gof/cmodule.py
+1
-1
opt.py
theano/gof/opt.py
+1
-1
scan.py
theano/scan_module/scan.py
+6
-6
scan_utils.py
theano/scan_module/scan_utils.py
+1
-2
test_scan.py
theano/scan_module/tests/test_scan.py
+5
-5
test_opt.py
theano/tensor/tests/test_opt.py
+4
-2
没有找到文件。
NEWS.txt
浏览文件 @
e0520e4e
...
@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
...
@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
* scan interface change:
* scan interface change:
* The use of `return_steps` for specifying how many entries of the output
* The use of `return_steps` for specifying how many entries of the output
scan has been depr
i
cated
scan has been depr
e
cated
* The same thing can be done by applying a subtensor on the output
* The same thing can be done by applying a subtensor on the output
return by scan to select a certain slice
return by scan to select a certain slice
...
...
doc/NEWS.txt
浏览文件 @
e0520e4e
...
@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
...
@@ -88,7 +88,7 @@ Deprecation (will be removed in Theano 0.5, warning generated if you use them):
* scan interface change:
* scan interface change:
* The use of `return_steps` for specifying how many entries of the output
* The use of `return_steps` for specifying how many entries of the output
scan has been depr
i
cated
scan has been depr
e
cated
* The same thing can be done by applying a subtensor on the output
* The same thing can be done by applying a subtensor on the output
return by scan to select a certain slice
return by scan to select a certain slice
...
...
theano/gof/cmodule.py
浏览文件 @
e0520e4e
...
@@ -998,7 +998,7 @@ class ModuleCache(object):
...
@@ -998,7 +998,7 @@ class ModuleCache(object):
age_thresh_del
=
self
.
age_thresh_del
age_thresh_del
=
self
.
age_thresh_del
# Ensure that the too_old_to_use list return by refresh() will
# Ensure that the too_old_to_use list return by refresh() will
# contain all modules older tha
t
n age_thresh_del.
# contain all modules older than age_thresh_del.
if
age_thresh_del
<
self
.
age_thresh_use
:
if
age_thresh_del
<
self
.
age_thresh_use
:
if
age_thresh_del
>
0
:
if
age_thresh_del
>
0
:
_logger
.
warning
(
"Clearing modules that were not deemed "
_logger
.
warning
(
"Clearing modules that were not deemed "
...
...
theano/gof/opt.py
浏览文件 @
e0520e4e
...
@@ -1125,7 +1125,7 @@ class EquilibriumOptimizer(NavigatorOptimizer):
...
@@ -1125,7 +1125,7 @@ class EquilibriumOptimizer(NavigatorOptimizer):
if
max_use_abort
:
if
max_use_abort
:
_logger
.
error
(
"EquilibriumOptimizer max'ed out by '
%
s'"
%
opt_name
_logger
.
error
(
"EquilibriumOptimizer max'ed out by '
%
s'"
%
opt_name
+
". You can safely raise the current threshold of "
+
". You can safely raise the current threshold of "
+
"
%
f with the theano fla
s
g 'optdb.max_use_ratio'."
%
+
"
%
f with the theano flag 'optdb.max_use_ratio'."
%
config
.
optdb
.
max_use_ratio
)
config
.
optdb
.
max_use_ratio
)
def
print_summary
(
self
,
stream
=
sys
.
stdout
,
level
=
0
,
depth
=-
1
):
def
print_summary
(
self
,
stream
=
sys
.
stdout
,
level
=
0
,
depth
=-
1
):
...
...
theano/scan_module/scan.py
浏览文件 @
e0520e4e
...
@@ -389,13 +389,13 @@ def scan(fn,
...
@@ -389,13 +389,13 @@ def scan(fn,
for
i
in
xrange
(
n_outs
):
for
i
in
xrange
(
n_outs
):
if
outs_info
[
i
]
is
not
None
:
if
outs_info
[
i
]
is
not
None
:
if
isinstance
(
outs_info
[
i
],
dict
):
if
isinstance
(
outs_info
[
i
],
dict
):
# DEPR
I
CATED :
# DEPR
E
CATED :
if
outs_info
[
i
]
.
get
(
'return_steps'
,
None
):
if
outs_info
[
i
]
.
get
(
'return_steps'
,
None
):
_logger
.
warning
(
(
"Using `return_steps` has been "
_logger
.
warning
(
"
depricated. Simply select the entries you
"
"
Using `return_steps` has been deprecated.
"
"
need using a subtensor. Scan will optimize
"
"
Simply select the entries you need using a
"
"
memory consumption, so do not worry about
"
"
subtensor. Scan will optimize memory
"
"
that."
)
)
"
consumption, so do not worry about that."
)
return_steps
[
i
]
=
outs_info
[
i
][
'return_steps'
]
return_steps
[
i
]
=
outs_info
[
i
][
'return_steps'
]
# END
# END
...
...
theano/scan_module/scan_utils.py
浏览文件 @
e0520e4e
...
@@ -131,8 +131,7 @@ def clone( output
...
@@ -131,8 +131,7 @@ def clone( output
graph. It returns a copy of the initial subgraph with the corresponding
graph. It returns a copy of the initial subgraph with the corresponding
substitutions.
substitutions.
:type output: Theano Variables (or Theano expressions)
:type output: Theano Variables ( or Theano expressions)
:param outputs: Theano expression that represents the computational
:param outputs: Theano expression that represents the computational
graph
graph
...
...
theano/scan_module/tests/test_scan.py
浏览文件 @
e0520e4e
...
@@ -724,8 +724,8 @@ class T_Scan(unittest.TestCase):
...
@@ -724,8 +724,8 @@ class T_Scan(unittest.TestCase):
# assert that it was done in place
# assert that it was done in place
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Old way of doing inplace operations is depr
i
cated .. tests don't
# Old way of doing inplace operations is depr
e
cated .. tests don't
# make sense anym
roe
# make sense anym
ore.
##assert numpy.allclose( theano_x0 , vu2)
##assert numpy.allclose( theano_x0 , vu2)
## assert numpy.allclose( theano_x1 , vu1)
## assert numpy.allclose( theano_x1 , vu1)
...
@@ -794,8 +794,8 @@ class T_Scan(unittest.TestCase):
...
@@ -794,8 +794,8 @@ class T_Scan(unittest.TestCase):
# inplace !!
# inplace !!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Old way of doing inplace operations is depr
i
cated .. tests don't
# Old way of doing inplace operations is depr
e
cated .. tests don't
# make sense anym
roe
# make sense anym
ore.
#assert not numpy.allclose( theano_x0 , vu2[1:4])
#assert not numpy.allclose( theano_x0 , vu2[1:4])
#assert numpy.allclose( theano_x1 , vu1[0:3])
#assert numpy.allclose( theano_x1 , vu1[0:3])
...
@@ -1552,7 +1552,7 @@ class T_Scan(unittest.TestCase):
...
@@ -1552,7 +1552,7 @@ class T_Scan(unittest.TestCase):
This unit test addresses the bug fix of changeset ba7157e95cb1.
This unit test addresses the bug fix of changeset ba7157e95cb1.
!!! test lost some of its meaning because return_steps has been
!!! test lost some of its meaning because return_steps has been
depr
i
cated !!!
depr
e
cated !!!
"""
"""
a
=
theano
.
tensor
.
vector
()
a
=
theano
.
tensor
.
vector
()
init_a
=
theano
.
tensor
.
vector
()
init_a
=
theano
.
tensor
.
vector
()
...
...
theano/tensor/tests/test_opt.py
浏览文件 @
e0520e4e
...
@@ -274,7 +274,8 @@ class test_canonize(unittest.TestCase):
...
@@ -274,7 +274,8 @@ class test_canonize(unittest.TestCase):
This part are that case that should have been done, but that are not implemented.
This part are that case that should have been done, but that are not implemented.
Test with and without DimShuffle
Test with and without DimShuffle
"""
"""
raise
SkipTest
(
"Current implementation of Canonizer don't implement all case. Skip the corresponding test"
)
raise
SkipTest
(
"Current implementation of Canonizer does not "
"implement all cases. Skip the corresponding test."
)
shp
=
(
5
,
5
)
shp
=
(
5
,
5
)
fx
,
fy
,
fz
=
fmatrices
(
'xyz'
)
fx
,
fy
,
fz
=
fmatrices
(
'xyz'
)
...
@@ -605,7 +606,8 @@ class test_canonize(unittest.TestCase):
...
@@ -605,7 +606,8 @@ class test_canonize(unittest.TestCase):
def
test_multiple_case_that_fail
(
self
):
def
test_multiple_case_that_fail
(
self
):
raise
SkipTest
(
"Current implementation of Canonizer don't implement all case. Skip the corresponding test"
)
raise
SkipTest
(
"Current implementation of Canonizer does not "
"implement all cases. Skip the corresponding test."
)
shp
=
(
4
,
4
)
shp
=
(
4
,
4
)
fx
,
fy
,
fz
=
fmatrices
(
'xyz'
)
fx
,
fy
,
fz
=
fmatrices
(
'xyz'
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论