Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
501dc901
提交
501dc901
authored
10月 09, 2008
作者:
Olivier Breuleux
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
moving tensor testers
上级
970f985d
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
test_basic.py
theano/tensor/tests/test_basic.py
+0
-0
test_elemwise.py
theano/tensor/tests/test_elemwise.py
+3
-3
test_opt.py
theano/tensor/tests/test_opt.py
+3
-3
test_raw_random.py
theano/tensor/tests/test_raw_random.py
+0
-0
没有找到文件。
theano/tensor/tests/
_
test_basic.py
→
theano/tensor/tests/test_basic.py
浏览文件 @
501dc901
差异被折叠。
点击展开。
theano/tensor/tests/
_
test_elemwise.py
→
theano/tensor/tests/test_elemwise.py
浏览文件 @
501dc901
...
@@ -15,7 +15,7 @@ def Env(i, o):
...
@@ -15,7 +15,7 @@ def Env(i, o):
e
=
gof
.
Env
(
i
,
o
)
e
=
gof
.
Env
(
i
,
o
)
return
e
return
e
class
_
test_DimShuffle
(
unittest
.
TestCase
):
class
test_DimShuffle
(
unittest
.
TestCase
):
def
with_linker
(
self
,
linker
):
def
with_linker
(
self
,
linker
):
for
xsh
,
shuffle
,
zsh
in
[((
2
,
3
),
(
1
,
'x'
,
0
),
(
3
,
1
,
2
)),
for
xsh
,
shuffle
,
zsh
in
[((
2
,
3
),
(
1
,
'x'
,
0
),
(
3
,
1
,
2
)),
...
@@ -35,7 +35,7 @@ class _test_DimShuffle(unittest.TestCase):
...
@@ -35,7 +35,7 @@ class _test_DimShuffle(unittest.TestCase):
self
.
with_linker
(
gof
.
PerformLinker
())
self
.
with_linker
(
gof
.
PerformLinker
())
class
_
test_Broadcast
(
unittest
.
TestCase
):
class
test_Broadcast
(
unittest
.
TestCase
):
def
with_linker
(
self
,
linker
):
def
with_linker
(
self
,
linker
):
for
xsh
,
ysh
in
[((
3
,
5
),
(
3
,
5
)),
for
xsh
,
ysh
in
[((
3
,
5
),
(
3
,
5
)),
...
@@ -119,7 +119,7 @@ class _test_Broadcast(unittest.TestCase):
...
@@ -119,7 +119,7 @@ class _test_Broadcast(unittest.TestCase):
assert
(
f
(
xv
)
==
zv
)
.
all
()
assert
(
f
(
xv
)
==
zv
)
.
all
()
class
_
test_CAReduce
(
unittest
.
TestCase
):
class
test_CAReduce
(
unittest
.
TestCase
):
def
with_linker
(
self
,
linker
):
def
with_linker
(
self
,
linker
):
for
xsh
,
tosum
in
[((
5
,
6
),
None
),
for
xsh
,
tosum
in
[((
5
,
6
),
None
),
...
...
theano/tensor/tests/
_
test_opt.py
→
theano/tensor/tests/test_opt.py
浏览文件 @
501dc901
...
@@ -61,7 +61,7 @@ def inputs(xbc = (0, 0), ybc = (0, 0), zbc = (0, 0)):
...
@@ -61,7 +61,7 @@ def inputs(xbc = (0, 0), ybc = (0, 0), zbc = (0, 0)):
ds
=
lambda
x
,
y
:
DimShuffle
(
x
.
type
.
broadcastable
,
y
)(
x
)
ds
=
lambda
x
,
y
:
DimShuffle
(
x
.
type
.
broadcastable
,
y
)(
x
)
class
_
test_dimshuffle_lift
(
unittest
.
TestCase
):
class
test_dimshuffle_lift
(
unittest
.
TestCase
):
def
test_double_transpose
(
self
):
def
test_double_transpose
(
self
):
x
,
y
,
z
=
inputs
()
x
,
y
,
z
=
inputs
()
...
@@ -102,7 +102,7 @@ from theano.tensor import *
...
@@ -102,7 +102,7 @@ from theano.tensor import *
#from sandbox import pprint
#from sandbox import pprint
class
_
test_greedy_distribute
(
unittest
.
TestCase
):
class
test_greedy_distribute
(
unittest
.
TestCase
):
def
test_main
(
self
):
def
test_main
(
self
):
a
,
b
,
c
,
d
,
x
,
y
,
z
=
matrices
(
'abcdxyz'
)
a
,
b
,
c
,
d
,
x
,
y
,
z
=
matrices
(
'abcdxyz'
)
e
=
(
a
/
z
+
b
/
x
)
*
x
*
z
e
=
(
a
/
z
+
b
/
x
)
*
x
*
z
...
@@ -115,7 +115,7 @@ class _test_greedy_distribute(unittest.TestCase):
...
@@ -115,7 +115,7 @@ class _test_greedy_distribute(unittest.TestCase):
class
_
test_canonize
(
unittest
.
TestCase
):
class
test_canonize
(
unittest
.
TestCase
):
def
test_muldiv
(
self
):
def
test_muldiv
(
self
):
x
,
y
,
z
=
matrices
(
'xyz'
)
x
,
y
,
z
=
matrices
(
'xyz'
)
...
...
theano/tensor/tests/
_
test_raw_random.py
→
theano/tensor/tests/test_raw_random.py
浏览文件 @
501dc901
File moved
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论