Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ed244b6b
提交
ed244b6b
authored
7月 16, 2014
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
C code that uses SgemmBatched and a kernel to initialize the list of stuff.
上级
c774e32e
全部展开
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
0 行增加
和
24 行删除
+0
-24
blocksparse.py
theano/sandbox/cuda/blocksparse.py
+0
-0
test_blocksparse.py
theano/sandbox/cuda/tests/test_blocksparse.py
+0
-24
没有找到文件。
theano/sandbox/cuda/blocksparse.py
浏览文件 @
ed244b6b
差异被折叠。
点击展开。
theano/sandbox/cuda/tests/test_blocksparse.py
浏览文件 @
ed244b6b
...
@@ -17,7 +17,6 @@ from theano.sandbox.cuda.basic_ops import (GpuDimShuffle,
...
@@ -17,7 +17,6 @@ from theano.sandbox.cuda.basic_ops import (GpuDimShuffle,
as_cuda_ndarray_variable
)
as_cuda_ndarray_variable
)
from
theano.sandbox.cuda.blocksparse
import
(
sparse_block_dot_SS
,
from
theano.sandbox.cuda.blocksparse
import
(
sparse_block_dot_SS
,
sparse_block_gemv_ss
,
sparse_block_gemv_ss
,
sparse_block_gemv_ss_inplace
,
sparse_block_outer_ss
,
sparse_block_outer_ss
,
sparse_block_outer_ss_inplace
)
sparse_block_outer_ss_inplace
)
...
@@ -136,26 +135,3 @@ def test_blocksparse_grad_shape():
...
@@ -136,26 +135,3 @@ def test_blocksparse_grad_shape():
assert
b_g
.
shape
==
b_val
.
shape
assert
b_g
.
shape
==
b_val
.
shape
assert
h_g
.
shape
==
h_val
.
shape
assert
h_g
.
shape
==
h_val
.
shape
assert
W_g
.
shape
==
W_val
.
shape
assert
W_g
.
shape
==
W_val
.
shape
class
TestBlockSparseDot
(
TestCase
,
utt
.
TestOptimizationMixin
):
def
test_opt_inplace
(
self
):
b
=
tensor
.
fmatrix
()
W
=
tensor
.
ftensor4
()
h
=
tensor
.
fmatrix
()
iIdx
=
tensor
.
lvector
()
oIdx
=
tensor
.
lvector
()
o
=
sparse_block_dot_SS
(
W
,
h
,
iIdx
,
b
,
oIdx
)
f
=
theano
.
function
([
W
,
h
,
iIdx
,
b
,
oIdx
],
o
,
mode
=
mode_with_gpu
)
self
.
assertFunctionContains0
(
f
,
sparse_block_gemv_ss
)
self
.
assertFunctionContains1
(
f
,
sparse_block_gemv_ss_inplace
)
gW
=
theano
.
grad
(
o
.
sum
(),
[
W
])
f
=
theano
.
function
([
W
,
h
,
iIdx
,
b
,
oIdx
],
gW
,
mode
=
mode_with_gpu
)
self
.
assertFunctionContains0
(
f
,
sparse_block_outer_ss
)
self
.
assertFunctionContains1
(
f
,
sparse_block_outer_ss_inplace
)
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论