Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
7fd4182a
提交
7fd4182a
authored
8月 14, 2012
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Typo fixes (mostly: enought -> enough)
上级
202eed7f
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
using_gpu.txt
doc/tutorial/using_gpu.txt
+1
-1
test_basic_ops.py
theano/sandbox/cuda/tests/test_basic_ops.py
+2
-2
test_blas.py
theano/sandbox/cuda/tests/test_blas.py
+1
-1
test_nnet.py
theano/sandbox/cuda/tests/test_nnet.py
+1
-1
没有找到文件。
doc/tutorial/using_gpu.txt
浏览文件 @
7fd4182a
...
@@ -232,7 +232,7 @@ Tips for improving performance on GPU
...
@@ -232,7 +232,7 @@ Tips for improving performance on GPU
taking more time than its share, then if you know something about GPU
taking more time than its share, then if you know something about GPU
programming have a look at how it's implemented in theano.sandbox.cuda.
programming have a look at how it's implemented in theano.sandbox.cuda.
Check the line like 'Spent Xs(X%) in cpu Op, Xs(X%) in gpu Op and Xs(X%) transfert Op'
Check the line like 'Spent Xs(X%) in cpu Op, Xs(X%) in gpu Op and Xs(X%) transfert Op'
that can tell you if not enough
t
of your graph is on the gpu or if their
that can tell you if not enough of your graph is on the gpu or if their
is too much memory transfert.
is too much memory transfert.
...
...
theano/sandbox/cuda/tests/test_basic_ops.py
浏览文件 @
7fd4182a
...
@@ -64,7 +64,7 @@ def test_sum():
...
@@ -64,7 +64,7 @@ def test_sum():
((
5
,
4
,
3
,
10
,
11
),[
1
,
2
]),
((
5
,
4
,
3
,
10
,
11
),[
1
,
2
]),
((
5
,
4
,
3
,
20
),[
2
,
3
]),
((
5
,
4
,
3
,
2
),[
0
,
1
,
2
,
3
]),
((
5
,
4
,
3
,
2
),[
0
,
2
,
3
]),((
5
,
4
,
3
,
2
),[
1
,
2
,
3
]),
((
5
,
4
,
3
,
20
),[
2
,
3
]),
((
5
,
4
,
3
,
2
),[
0
,
1
,
2
,
3
]),
((
5
,
4
,
3
,
2
),[
0
,
2
,
3
]),((
5
,
4
,
3
,
2
),[
1
,
2
,
3
]),
#test shape bigger then 4096 on each dimension to make sure that we work correctly when we don't have enough
t
thread/block in each dimensions
#test shape bigger then 4096 on each dimension to make sure that we work correctly when we don't have enough thread/block in each dimensions
((
4100
,
3
),[
0
]),((
3
,
4101
),[
0
]),
#10
((
4100
,
3
),[
0
]),((
3
,
4101
),[
0
]),
#10
((
1024
,
33
),[
0
]),((
33
,
1024
),[
0
]),
#10
((
1024
,
33
),[
0
]),((
33
,
1024
),[
0
]),
#10
((
1025
,
33
),[
0
]),((
33
,
1025
),[
0
]),
#10
((
1025
,
33
),[
0
]),((
33
,
1025
),[
0
]),
#10
...
@@ -880,7 +880,7 @@ class T_subtensor(theano.tensor.tests.test_basic.T_subtensor):
...
@@ -880,7 +880,7 @@ class T_subtensor(theano.tensor.tests.test_basic.T_subtensor):
((
4
,
4
,
2
,
3
),
[
3
,
3
,
1
,
1
,
2
,
2
,
0
,
0
,
((
4
,
4
,
2
,
3
),
[
3
,
3
,
1
,
1
,
2
,
2
,
0
,
0
,
-
1
,
-
2
,
-
3
,
-
4
],
False
),
-
1
,
-
2
,
-
3
,
-
4
],
False
),
]:
]:
# If there is not enough
t
memory on the GPU, skip the test
# If there is not enough memory on the GPU, skip the test
size_needed
=
numpy
.
prod
(
shape
)
*
(
4
+
1
)
size_needed
=
numpy
.
prod
(
shape
)
*
(
4
+
1
)
if
isinstance
(
theano
.
compile
.
get_default_mode
(),
if
isinstance
(
theano
.
compile
.
get_default_mode
(),
theano
.
compile
.
DebugMode
):
theano
.
compile
.
DebugMode
):
...
...
theano/sandbox/cuda/tests/test_blas.py
浏览文件 @
7fd4182a
...
@@ -310,7 +310,7 @@ def test_downsample():
...
@@ -310,7 +310,7 @@ def test_downsample():
# The grad is too slow on GT220 GPU
# The grad is too slow on GT220 GPU
# This cause the computer to freeze...
# This cause the computer to freeze...
# Remove this when it get
optimized enought
# Remove this when it get
s optimized enough
# This only bypass the last 2 checks
# This only bypass the last 2 checks
# Those tests where passing in all Mode on a GTX470
# Those tests where passing in all Mode on a GTX470
if
shp
[
0
]
>
30000
or
shp
[
1
]
>
30000
:
if
shp
[
0
]
>
30000
or
shp
[
1
]
>
30000
:
...
...
theano/sandbox/cuda/tests/test_nnet.py
浏览文件 @
7fd4182a
...
@@ -46,7 +46,7 @@ def test_GpuCrossentropySoftmaxArgmax1HotWithBias():
...
@@ -46,7 +46,7 @@ def test_GpuCrossentropySoftmaxArgmax1HotWithBias():
#we precompute the dot with big shape before to allow the test of
#we precompute the dot with big shape before to allow the test of
#GpuCrossentropySoftmax1HotWithBiasDx to don't fail with the error
#GpuCrossentropySoftmax1HotWithBiasDx to don't fail with the error
#(the launch timed out and was terminated) on GPU card not
#(the launch timed out and was terminated) on GPU card not
#powerful
l enought
. We need the big shape to check for corner
#powerful
enough
. We need the big shape to check for corner
#case.
#case.
dot_result
=
T
.
fmatrix
(
'dot_result'
)
dot_result
=
T
.
fmatrix
(
'dot_result'
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论