Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
0d20ed2e
提交
0d20ed2e
authored
1月 26, 2010
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
skip test if cuda not installed
上级
0dae8f43
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
19 行增加
和
16 行删除
+19
-16
test_basic_ops.py
theano/sandbox/cuda/tests/test_basic_ops.py
+2
-3
test_bench_loopfusion.py
theano/sandbox/cuda/tests/test_bench_loopfusion.py
+2
-3
test_blas.py
theano/sandbox/cuda/tests/test_blas.py
+2
-3
test_conv_cuda_ndarray.py
theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py
+5
-1
test_cuda_ndarray.py
theano/sandbox/cuda/tests/test_cuda_ndarray.py
+4
-0
test_nnet.py
theano/sandbox/cuda/tests/test_nnet.py
+2
-3
test_opt.py
theano/sandbox/cuda/tests/test_opt.py
+2
-3
没有找到文件。
theano/sandbox/cuda/tests/test_basic_ops.py
浏览文件 @
0d20ed2e
...
@@ -10,9 +10,8 @@ import theano.tensor as T
...
@@ -10,9 +10,8 @@ import theano.tensor as T
# Skip test if cuda_ndarray is not available.
# Skip test if cuda_ndarray is not available.
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
try
:
import
theano.sandbox.cuda
as
cuda_ndarray
import
theano.sandbox.cuda
as
cuda_ndarray
if
cuda_ndarray
.
enable_cuda
==
False
:
except
ImportError
:
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
import
theano.sandbox.cuda
as
tcn
import
theano.sandbox.cuda
as
tcn
...
...
theano/sandbox/cuda/tests/test_bench_loopfusion.py
浏览文件 @
0d20ed2e
...
@@ -269,9 +269,8 @@ def test_bench_elemwise(n_iter=1000, **kwargs):
...
@@ -269,9 +269,8 @@ def test_bench_elemwise(n_iter=1000, **kwargs):
if
conf
.
use_gpu
:
if
conf
.
use_gpu
:
# Skip test if cuda_ndarray is not available.
# Skip test if cuda_ndarray is not available.
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
try
:
import
theano.sandbox.cuda
as
cuda_ndarray
import
cuda_ndarray
if
cuda_ndarray
.
enable_cuda
==
False
:
except
ImportError
:
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
import
theano.sandbox.cuda
import
theano.sandbox.cuda
theano
.
sandbox
.
cuda
.
use
()
theano
.
sandbox
.
cuda
.
use
()
...
...
theano/sandbox/cuda/tests/test_blas.py
浏览文件 @
0d20ed2e
...
@@ -7,9 +7,8 @@ import numpy
...
@@ -7,9 +7,8 @@ import numpy
# Skip test if cuda_ndarray is not available.
# Skip test if cuda_ndarray is not available.
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
try
:
import
theano.sandbox.cuda
as
cuda_ndarray
import
theano.sandbox.cuda
as
cuda_ndarray
if
cuda_ndarray
.
enable_cuda
==
False
:
except
ImportError
:
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
import
theano.sandbox.cuda
as
tcn
import
theano.sandbox.cuda
as
tcn
...
...
theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py
浏览文件 @
0d20ed2e
import
sys
,
time
import
sys
,
time
import
numpy
import
numpy
# Skip test if cuda_ndarray is not available.
from
nose.plugins.skip
import
SkipTest
import
theano.sandbox.cuda
as
cuda_ndarray
import
theano.sandbox.cuda
as
cuda_ndarray
if
cuda_ndarray
.
enable_cuda
==
False
:
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
def
py_conv_valid_numpy
(
img
,
kern
):
def
py_conv_valid_numpy
(
img
,
kern
):
assert
img
.
shape
[
1
]
==
kern
.
shape
[
1
]
assert
img
.
shape
[
1
]
==
kern
.
shape
[
1
]
outshp
=
(
img
.
shape
[
0
],
kern
.
shape
[
0
],
outshp
=
(
img
.
shape
[
0
],
kern
.
shape
[
0
],
...
...
theano/sandbox/cuda/tests/test_cuda_ndarray.py
浏览文件 @
0d20ed2e
import
time
,
copy
,
sys
import
time
,
copy
,
sys
import
theano.sandbox.cuda
as
cuda_ndarray
import
theano.sandbox.cuda
as
cuda_ndarray
# Skip test if cuda_ndarray is not available.
from
nose.plugins.skip
import
SkipTest
if
cuda_ndarray
.
enable_cuda
==
False
:
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
import
numpy
import
numpy
def
test_host_to_device
():
def
test_host_to_device
():
...
...
theano/sandbox/cuda/tests/test_nnet.py
浏览文件 @
0d20ed2e
...
@@ -13,9 +13,8 @@ import numpy
...
@@ -13,9 +13,8 @@ import numpy
# Skip test if cuda_ndarray is not available.
# Skip test if cuda_ndarray is not available.
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
try
:
import
theano.sandbox.cuda
as
cuda_ndarray
import
theano.sandbox.cuda
as
cuda_ndarray
if
cuda_ndarray
.
enable_cuda
==
False
:
except
ImportError
:
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
import
theano.sandbox.cuda
as
tcn
import
theano.sandbox.cuda
as
tcn
...
...
theano/sandbox/cuda/tests/test_opt.py
浏览文件 @
0d20ed2e
...
@@ -7,9 +7,8 @@ import numpy
...
@@ -7,9 +7,8 @@ import numpy
# Skip test if cuda_ndarray is not available.
# Skip test if cuda_ndarray is not available.
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
try
:
import
theano.sandbox.cuda
as
cuda_ndarray
import
theano.sandbox.cuda
as
cuda_ndarray
if
cuda_ndarray
.
enable_cuda
==
False
:
except
ImportError
:
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
raise
SkipTest
(
'Optional package cuda_ndarray not available'
)
import
theano.compile.mode
import
theano.compile.mode
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论