Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
06962b6f
提交
06962b6f
authored
3月 15, 2012
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed some typos
上级
dc921d8c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
7 行删除
+6
-7
NEWS.txt
NEWS.txt
+3
-3
test_opt.py
theano/sandbox/cuda/tests/test_opt.py
+3
-4
没有找到文件。
NEWS.txt
浏览文件 @
06962b6f
...
@@ -29,7 +29,7 @@ New Features
...
@@ -29,7 +29,7 @@ New Features
(Frederic B.)
(Frederic B.)
* debugprint does not print anymore the "|" symbol in a column after the last input. (Frederic B.)
* debugprint does not print anymore the "|" symbol in a column after the last input. (Frederic B.)
* If you use Enthought Python Distribution (EPD) now we use its blas
* If you use Enthought Python Distribution (EPD) now we use its blas
implementation by default (
Tested Linux,
Windows)
implementation by default (
tested on Linux and
Windows)
(Frederic B., Simon McGregor)
(Frederic B., Simon McGregor)
Sparse Sandbox graduate
Sparse Sandbox graduate
...
@@ -55,10 +55,10 @@ Crash Fix
...
@@ -55,10 +55,10 @@ Crash Fix
* Optimization printed a useless error when scipy was not available. (Frederic B.)
* Optimization printed a useless error when scipy was not available. (Frederic B.)
* GPU conv crash/slowdown on newer hardware (James B.)
* GPU conv crash/slowdown on newer hardware (James B.)
* Better error handling in GPU conv (Frederic B.)
* Better error handling in GPU conv (Frederic B.)
* GPU optimization that move
element-wise op to the gpu. It happen
in
* GPU optimization that move
s element-wise Ops to the GPU. Crash happened
in
a particular execution order of this optimization and the
a particular execution order of this optimization and the
element-wise fusion optimization when upcasting some inputs to
element-wise fusion optimization when upcasting some inputs to
float32 (to compute them on the
gpu
).
float32 (to compute them on the
GPU
).
(Frederic B., reported by Sander Dieleman)
(Frederic B., reported by Sander Dieleman)
=============
=============
...
...
theano/sandbox/cuda/tests/test_opt.py
浏览文件 @
06962b6f
...
@@ -243,8 +243,7 @@ def test_huge_elemwise_fusion():
...
@@ -243,8 +243,7 @@ def test_huge_elemwise_fusion():
def
test_local_gpu_elemwise_0
():
def
test_local_gpu_elemwise_0
():
"""
"""
Test the test_local_gpu_elemwise_0 when there is dtype upcastable
Test local_gpu_elemwise_0 when there is a dtype upcastable to float32
to float32
"""
"""
a
=
tensor
.
bmatrix
()
a
=
tensor
.
bmatrix
()
b
=
tensor
.
fmatrix
()
b
=
tensor
.
fmatrix
()
...
@@ -254,7 +253,7 @@ def test_local_gpu_elemwise_0():
...
@@ -254,7 +253,7 @@ def test_local_gpu_elemwise_0():
b_v
=
(
numpy
.
random
.
rand
(
4
,
5
)
*
10
)
.
astype
(
"float32"
)
b_v
=
(
numpy
.
random
.
rand
(
4
,
5
)
*
10
)
.
astype
(
"float32"
)
c_v
=
(
numpy
.
random
.
rand
(
4
,
5
)
*
10
)
.
astype
(
"float32"
)
c_v
=
(
numpy
.
random
.
rand
(
4
,
5
)
*
10
)
.
astype
(
"float32"
)
# Due to o
rder of optimization, this the
composite is created when all
# Due to o
ptimization order, this
composite is created when all
# the op are on the gpu.
# the op are on the gpu.
f
=
theano
.
function
([
a
,
b
,
c
],
[
a
+
b
+
c
],
mode
=
mode_with_gpu
)
f
=
theano
.
function
([
a
,
b
,
c
],
[
a
+
b
+
c
],
mode
=
mode_with_gpu
)
#theano.printing.debugprint(f)
#theano.printing.debugprint(f)
...
@@ -263,7 +262,7 @@ def test_local_gpu_elemwise_0():
...
@@ -263,7 +262,7 @@ def test_local_gpu_elemwise_0():
assert
sum
(
isinstance
(
node
.
op
,
tensor
.
Elemwise
)
for
node
in
topo
)
==
1
assert
sum
(
isinstance
(
node
.
op
,
tensor
.
Elemwise
)
for
node
in
topo
)
==
1
f
(
a_v
,
b_v
,
c_v
)
f
(
a_v
,
b_v
,
c_v
)
# No
t
test with the composite already on the cpu before we move it
# No
w
test with the composite already on the cpu before we move it
# to the gpu
# to the gpu
a_s
=
theano
.
scalar
.
int8
()
a_s
=
theano
.
scalar
.
int8
()
b_s
=
theano
.
scalar
.
float32
()
b_s
=
theano
.
scalar
.
float32
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论