Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
a762b617
提交
a762b617
authored
6月 12, 2017
作者:
Arnaud Bergeron
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add comments explaining the difference between offset_im and data_im_offset.
上级
8691b31a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
0 行删除
+19
-0
corr3d_gemm.c
theano/gpuarray/corr3d_gemm.c
+9
-0
corr_gemm.c
theano/gpuarray/corr_gemm.c
+10
-0
没有找到文件。
theano/gpuarray/corr3d_gemm.c
浏览文件 @
a762b617
...
@@ -37,6 +37,8 @@ KERNEL void dilated_im3d2col_kernel(const ga_size n,
...
@@ -37,6 +37,8 @@ KERNEL void dilated_im3d2col_kernel(const ga_size n,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_im
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_im
,
const
ga_size
offset_im
,
const
ga_size
offset_im
,
const
ga_size
data_im_offset
,
const
ga_size
data_im_offset
,
// offset_im is the pointer offset for data_im.
// data_im_offset is an offset of elements in the array
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
depth
,
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
depth
,
const
ga_size
kernel_h
,
const
ga_size
kernel_w
,
const
ga_size
kernel_d
,
const
ga_size
kernel_h
,
const
ga_size
kernel_w
,
const
ga_size
kernel_d
,
const
ga_size
dilation_h
,
const
ga_size
dilation_w
,
const
ga_size
dilation_d
,
const
ga_size
dilation_h
,
const
ga_size
dilation_w
,
const
ga_size
dilation_d
,
...
@@ -89,6 +91,8 @@ KERNEL void im3d2col_kernel(const ga_size n,
...
@@ -89,6 +91,8 @@ KERNEL void im3d2col_kernel(const ga_size n,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_im
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_im
,
const
ga_size
offset_im
,
const
ga_size
offset_im
,
const
ga_size
data_im_offset
,
const
ga_size
data_im_offset
,
// offset_im is the pointer offset for data_im.
// data_im_offset is an offset of elements in the array
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
depth
,
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
depth
,
const
ga_size
kernel_h
,
const
ga_size
kernel_w
,
const
ga_size
kernel_d
,
const
ga_size
kernel_h
,
const
ga_size
kernel_w
,
const
ga_size
kernel_d
,
const
ga_size
pad_h
,
const
ga_size
pad_w
,
const
ga_size
pad_d
,
const
ga_size
pad_h
,
const
ga_size
pad_w
,
const
ga_size
pad_d
,
...
@@ -148,6 +152,8 @@ KERNEL void dilated_col2im3d_kernel(const ga_size n,
...
@@ -148,6 +152,8 @@ KERNEL void dilated_col2im3d_kernel(const ga_size n,
GLOBAL_MEM
DTYPE_INPUT_0
*
data_im
,
GLOBAL_MEM
DTYPE_INPUT_0
*
data_im
,
const
ga_size
offset_im
,
const
ga_size
offset_im
,
const
ga_size
data_im_offset
)
{
const
ga_size
data_im_offset
)
{
// offset_im is the pointer offset for data_im.
// data_im_offset is an offset of elements in the array
data_im
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_im
)
+
offset_im
);
data_im
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_im
)
+
offset_im
);
data_col
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_col
)
+
offset_col
);
data_col
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_col
)
+
offset_col
);
// grid stride looping
// grid stride looping
...
@@ -201,6 +207,7 @@ KERNEL void dilated_col2im3d_kernel(const ga_size n,
...
@@ -201,6 +207,7 @@ KERNEL void dilated_col2im3d_kernel(const ga_size n,
}
}
#kernel col2im3d_kernel : size, *, size, size, size, size, size, size, size, size, size, size, size, size, size, size, size, size, size, *, size, size :
#kernel col2im3d_kernel : size, *, size, size, size, size, size, size, size, size, size, size, size, size, size, size, size, size, size, *, size, size :
KERNEL
void
col2im3d_kernel
(
const
ga_size
n
,
KERNEL
void
col2im3d_kernel
(
const
ga_size
n
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_col
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_col
,
const
ga_size
offset_col
,
const
ga_size
offset_col
,
...
@@ -213,6 +220,8 @@ KERNEL void col2im3d_kernel(const ga_size n,
...
@@ -213,6 +220,8 @@ KERNEL void col2im3d_kernel(const ga_size n,
GLOBAL_MEM
DTYPE_INPUT_0
*
data_im
,
GLOBAL_MEM
DTYPE_INPUT_0
*
data_im
,
const
ga_size
offset_im
,
const
ga_size
offset_im
,
const
ga_size
data_im_offset
)
{
const
ga_size
data_im_offset
)
{
// offset_im is the pointer offset for data_im.
// data_im_offset is an offset of elements in the array
data_im
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_im
)
+
offset_im
);
data_im
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_im
)
+
offset_im
);
data_col
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_col
)
+
offset_col
);
data_col
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_col
)
+
offset_col
);
// grid stride looping
// grid stride looping
...
...
theano/gpuarray/corr_gemm.c
浏览文件 @
a762b617
...
@@ -37,6 +37,8 @@ KERNEL void dilated_im2col_kernel(const ga_size n,
...
@@ -37,6 +37,8 @@ KERNEL void dilated_im2col_kernel(const ga_size n,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_im
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_im
,
const
ga_size
offset_im
,
const
ga_size
offset_im
,
const
ga_size
data_im_offset
,
const
ga_size
data_im_offset
,
// offset_im is the pointer offset for data_im.
// data_im_offset is an offset of elements in the array
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
kernel_h
,
const
ga_size
kernel_w
,
const
ga_size
kernel_h
,
const
ga_size
kernel_w
,
const
ga_size
dilation_h
,
const
ga_size
dilation_w
,
const
ga_size
dilation_h
,
const
ga_size
dilation_w
,
...
@@ -75,10 +77,13 @@ KERNEL void dilated_im2col_kernel(const ga_size n,
...
@@ -75,10 +77,13 @@ KERNEL void dilated_im2col_kernel(const ga_size n,
}
}
#kernel im2col_kernel : size, *, size, size, size, size, size, size, size, size, size, size, size, size, *, size :
#kernel im2col_kernel : size, *, size, size, size, size, size, size, size, size, size, size, size, size, *, size :
KERNEL
void
im2col_kernel
(
const
ga_size
n
,
KERNEL
void
im2col_kernel
(
const
ga_size
n
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_im
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_im
,
const
ga_size
offset_im
,
const
ga_size
offset_im
,
const
ga_size
data_im_offset
,
const
ga_size
data_im_offset
,
// offset_im is the pointer offset for data_im.
// data_im_offset is an offset of elements in the array
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
kernel_h
,
const
ga_size
kernel_w
,
const
ga_size
kernel_h
,
const
ga_size
kernel_w
,
const
ga_size
pad_h
,
const
ga_size
pad_w
,
const
ga_size
pad_h
,
const
ga_size
pad_w
,
...
@@ -128,6 +133,8 @@ KERNEL void dilated_col2im_kernel(const ga_size n,
...
@@ -128,6 +133,8 @@ KERNEL void dilated_col2im_kernel(const ga_size n,
GLOBAL_MEM
DTYPE_INPUT_0
*
data_im
,
GLOBAL_MEM
DTYPE_INPUT_0
*
data_im
,
const
ga_size
offset_im
,
const
ga_size
offset_im
,
const
ga_size
data_im_offset
)
{
const
ga_size
data_im_offset
)
{
// offset_im is the pointer offset for data_im.
// data_im_offset is an offset of elements in the array
data_col
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_col
)
+
offset_col
);
data_col
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_col
)
+
offset_col
);
data_im
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_im
)
+
offset_im
);
data_im
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_im
)
+
offset_im
);
// grid stride looping
// grid stride looping
...
@@ -165,6 +172,7 @@ KERNEL void dilated_col2im_kernel(const ga_size n,
...
@@ -165,6 +172,7 @@ KERNEL void dilated_col2im_kernel(const ga_size n,
}
}
#kernel col2im_kernel : size, *, size, size, size, size, size, size, size, size, size, size, size, size, *, size, size :
#kernel col2im_kernel : size, *, size, size, size, size, size, size, size, size, size, size, size, size, *, size, size :
KERNEL
void
col2im_kernel
(
const
ga_size
n
,
KERNEL
void
col2im_kernel
(
const
ga_size
n
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_col
,
const
ga_size
offset_col
,
GLOBAL_MEM
const
DTYPE_INPUT_0
*
data_col
,
const
ga_size
offset_col
,
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
channels
,
const
ga_size
height
,
const
ga_size
width
,
const
ga_size
channels
,
...
@@ -175,6 +183,8 @@ KERNEL void col2im_kernel(const ga_size n,
...
@@ -175,6 +183,8 @@ KERNEL void col2im_kernel(const ga_size n,
GLOBAL_MEM
DTYPE_INPUT_0
*
data_im
,
GLOBAL_MEM
DTYPE_INPUT_0
*
data_im
,
const
ga_size
offset_im
,
const
ga_size
offset_im
,
const
ga_size
data_im_offset
)
{
const
ga_size
data_im_offset
)
{
// offset_im is the pointer offset for data_im.
// data_im_offset is an offset of elements in the array
data_col
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_col
)
+
offset_col
);
data_col
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_col
)
+
offset_col
);
data_im
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_im
)
+
offset_im
);
data_im
=
(
GLOBAL_MEM
DTYPE_INPUT_0
*
)(((
char
*
)
data_im
)
+
offset_im
);
// grid stride looping
// grid stride looping
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论