Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
0efa1e46
提交
0efa1e46
authored
3月 30, 2015
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove import of test classes.
上级
b2d3d192
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
29 行增加
和
29 行删除
+29
-29
test_basic_ops.py
theano/sandbox/gpuarray/tests/test_basic_ops.py
+16
-16
test_subtensor.py
theano/sandbox/gpuarray/tests/test_subtensor.py
+13
-13
没有找到文件。
theano/sandbox/gpuarray/tests/test_basic_ops.py
浏览文件 @
0efa1e46
...
...
@@ -7,9 +7,10 @@ import theano
import
theano.tensor
as
T
from
theano.tensor
import
TensorType
from
theano.tensor.basic
import
alloc
from
theano.tensor.tests.test_basic
import
(
rand
,
safe_make_node
,
T_reshape
,
T_Join_and_Split
)
# Don't import test classes otherwise they get tested as part of the file
from
theano.tensor.tests
import
test_basic
from
theano.tensor.tests.test_basic
import
rand
,
safe_make_node
from
theano.tests.unittest_tools
import
SkipTest
from
numpy.testing.noseclasses
import
KnownFailureTest
...
...
@@ -340,26 +341,25 @@ def test_gpu_contiguous():
assert
f
(
a_val
,
2
)
.
flags
.
c_contiguous
class
G_reshape
(
T_reshape
):
class
G_reshape
(
test_basic
.
T_reshape
):
def
shortDescription
(
self
):
return
None
def
__init__
(
self
,
name
):
T_reshape
.
__init__
(
self
,
name
,
shared
=
gpuarray_shared_constructor
,
op
=
GpuReshape
,
mode
=
mode_with_gpu
,
# avoid errors with limited devices
# dtype='float32',
ignore_topo
=
(
HostFromGpu
,
GpuFromHost
,
theano
.
compile
.
DeepCopyOp
,
theano
.
sandbox
.
gpuarray
.
elemwise
.
GpuElemwise
,
theano
.
tensor
.
opt
.
Shape_i
,
theano
.
tensor
.
opt
.
MakeVector
))
test_basic
.
T_reshape
.
__init__
(
self
,
name
,
shared
=
gpuarray_shared_constructor
,
op
=
GpuReshape
,
mode
=
mode_with_gpu
,
ignore_topo
=
(
HostFromGpu
,
GpuFromHost
,
theano
.
compile
.
DeepCopyOp
,
theano
.
sandbox
.
gpuarray
.
elemwise
.
GpuElemwise
,
theano
.
tensor
.
opt
.
Shape_i
,
theano
.
tensor
.
opt
.
MakeVector
))
assert
self
.
op
==
GpuReshape
class
G_Join_and_Split
(
T_Join_and_Split
):
class
G_Join_and_Split
(
test_basic
.
T_Join_and_Split
):
def
setUp
(
self
):
super
(
G_Join_and_Split
,
self
)
.
setUp
()
self
.
mode
=
mode_with_gpu
.
excluding
(
'constant_folding'
)
...
...
theano/sandbox/gpuarray/tests/test_subtensor.py
浏览文件 @
0efa1e46
...
...
@@ -3,8 +3,7 @@ import numpy
import
theano
from
theano
import
tensor
from
theano.compile
import
DeepCopyOp
from
theano.tensor.tests.test_subtensor
import
T_subtensor
from
theano.tensor.tests
import
test_subtensor
from
..basic_ops
import
HostFromGpu
,
GpuFromHost
from
..subtensor
import
(
GpuIncSubtensor
,
GpuSubtensor
,
...
...
@@ -15,21 +14,22 @@ from .test_basic_ops import mode_with_gpu
class
G_subtensor
(
T_subtensor
):
class
G_subtensor
(
test_subtensor
.
T_subtensor
):
def
shortDescription
(
self
):
return
None
def
__init__
(
self
,
name
):
T_subtensor
.
__init__
(
self
,
name
,
shared
=
gpuarray_shared_constructor
,
sub
=
GpuSubtensor
,
inc_sub
=
GpuIncSubtensor
,
adv_incsub1
=
GpuAdvancedIncSubtensor1
,
mode
=
mode_with_gpu
,
# avoid errors with limited devices
dtype
=
'float32'
,
ignore_topo
=
(
HostFromGpu
,
GpuFromHost
,
DeepCopyOp
))
test_subtensor
.
T_subtensor
.
__init__
(
self
,
name
,
shared
=
gpuarray_shared_constructor
,
sub
=
GpuSubtensor
,
inc_sub
=
GpuIncSubtensor
,
adv_incsub1
=
GpuAdvancedIncSubtensor1
,
mode
=
mode_with_gpu
,
# avoid errors with limited devices
dtype
=
'float32'
,
ignore_topo
=
(
HostFromGpu
,
GpuFromHost
,
DeepCopyOp
))
# GPU opt can't run in fast_compile only.
self
.
fast_compile
=
False
assert
self
.
sub
==
GpuSubtensor
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论