Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
4829418f
提交
4829418f
authored
10月 23, 2014
作者:
Frédéric Bastien
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2205 from lamblin/pep8_tensor_basic
PEP8/flake8 fixes in tensor/basic.py
上级
d0328682
fb131895
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
5 行增加
和
3 行删除
+5
-3
ifelse.py
theano/ifelse.py
+1
-1
__init__.py
theano/tensor/__init__.py
+3
-0
basic.py
theano/tensor/basic.py
+0
-0
test_opt.py
theano/tensor/tests/test_opt.py
+1
-2
没有找到文件。
theano/ifelse.py
浏览文件 @
4829418f
...
@@ -435,7 +435,7 @@ where, each of the optimization do the following things:
...
@@ -435,7 +435,7 @@ where, each of the optimization do the following things:
acceptable_ops
=
(
theano
.
tensor
.
basic
.
Dot
,
acceptable_ops
=
(
theano
.
tensor
.
basic
.
Dot
,
theano
.
tensor
.
basic
.
Reshape
,
theano
.
tensor
.
basic
.
Reshape
,
theano
.
tensor
.
basic
.
Shape
,
theano
.
tensor
.
basic
.
Shape
,
theano
.
tensor
.
basic
.
SpecifyShape
,
theano
.
tensor
.
SpecifyShape
,
theano
.
tensor
.
basic
.
MaxAndArgmax
,
theano
.
tensor
.
basic
.
MaxAndArgmax
,
theano
.
tensor
.
Subtensor
,
theano
.
tensor
.
Subtensor
,
theano
.
tensor
.
IncSubtensor
,
theano
.
tensor
.
IncSubtensor
,
...
...
theano/tensor/__init__.py
浏览文件 @
4829418f
...
@@ -65,3 +65,6 @@ from theano.tensor.sort import sort, argsort
...
@@ -65,3 +65,6 @@ from theano.tensor.sort import sort, argsort
from
theano.tensor.extra_ops
import
(
DiffOp
,
bincount
,
squeeze
,
from
theano.tensor.extra_ops
import
(
DiffOp
,
bincount
,
squeeze
,
repeat
,
bartlett
,
fill_diagonal
,
fill_diagonal_offset
,
repeat
,
bartlett
,
fill_diagonal
,
fill_diagonal_offset
,
cumsum
,
cumprod
)
cumsum
,
cumprod
)
# SpecifyShape is defined in theano.compile, but should be available in tensor
from
theano.compile
import
SpecifyShape
,
specify_shape
theano/tensor/basic.py
浏览文件 @
4829418f
差异被折叠。
点击展开。
theano/tensor/tests/test_opt.py
浏览文件 @
4829418f
...
@@ -1650,8 +1650,7 @@ def test_local_useless_subtensor():
...
@@ -1650,8 +1650,7 @@ def test_local_useless_subtensor():
#theano.printing.debugprint(f)
#theano.printing.debugprint(f)
prog
=
f
.
maker
.
fgraph
.
toposort
()
prog
=
f
.
maker
.
fgraph
.
toposort
()
if
res
:
if
res
:
assert
isinstance
(
prog
[
0
]
.
op
,
theano
.
tensor
.
basic
.
assert
isinstance
(
prog
[
0
]
.
op
,
theano
.
tensor
.
SpecifyShape
),
dims
SpecifyShape
),
dims
assert
prog
[
1
]
.
op
==
tensor
.
exp
,
dims
assert
prog
[
1
]
.
op
==
tensor
.
exp
,
dims
assert
len
(
prog
)
==
2
,
dims
assert
len
(
prog
)
==
2
,
dims
else
:
else
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论