Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
0dae8f43
提交
0dae8f43
authored
1月 26, 2010
作者:
Frederic Bastien
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move the convolution from cuda_ndarray to the GpuConvOp.
上级
ccc01a40
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
10 行增加
和
11 行删除
+10
-11
blas.py
theano/sandbox/cuda/blas.py
+0
-0
conv.cu
theano/sandbox/cuda/conv.cu
+0
-0
conv_full_kernel.cu
theano/sandbox/cuda/conv_full_kernel.cu
+0
-1
conv_kernel.cu
theano/sandbox/cuda/conv_kernel.cu
+0
-2
cuda_ndarray.cu
theano/sandbox/cuda/cuda_ndarray.cu
+0
-0
cuda_ndarray.cuh
theano/sandbox/cuda/cuda_ndarray.cuh
+10
-8
没有找到文件。
theano/sandbox/cuda/blas.py
浏览文件 @
0dae8f43
差异被折叠。
点击展开。
theano/sandbox/cuda/conv.cu
0 → 100644
浏览文件 @
0dae8f43
差异被折叠。
点击展开。
theano/sandbox/cuda/conv_full_kernel.cu
浏览文件 @
0dae8f43
#include"conv_kernel.cu"
//we store the full image and the full kernel in the shared memory
//each thread compute only one value for the output
//thread block size=out_wid, out_len/nb_split
...
...
theano/sandbox/cuda/conv_kernel.cu
浏览文件 @
0dae8f43
...
...
@@ -28,8 +28,6 @@ for (int iter_m=0; iter_m < Os[0]; iter_m++) {
#ifndef CONV_KERNEL_CU
#define CONV_KERNEL_CU
#include <stdio.h>
/*
#define CHECK_BANK_CONFLICTS 0
#if CHECK_BANK_CONFLICTS
...
...
theano/sandbox/cuda/cuda_ndarray.cu
浏览文件 @
0dae8f43
差异被折叠。
点击展开。
theano/sandbox/cuda/cuda_ndarray.cuh
浏览文件 @
0dae8f43
...
...
@@ -26,6 +26,16 @@ typedef float real;
#endif
#ifndef SHARED_SIZE
#define SHARED_SIZE (16*1024)
#endif
template <typename T>
static T ceil_intdiv(T a, T b)
{
return (a/b) + ((a % b) ? 1: 0);
}
/**
* struct CudaNdarray
*
...
...
@@ -408,14 +418,6 @@ int CudaNdarray_reduce_max(CudaNdarray * self, CudaNdarray * A);
int CudaNdarray_dimshuffle(CudaNdarray * self, unsigned int len, const int * pattern);
enum { ConvMode_FULL, ConvMode_VALID };
PyObject * CudaNdarray_Conv(const CudaNdarray *img, const CudaNdarray * kern, CudaNdarray * out, const int mode, const int subsample_rows, const int subsample_cols, const int version, const int verbose);
PyObject * CudaNdarray_Conv(const CudaNdarray *img, const CudaNdarray * kern, CudaNdarray * out, const int mode)
{
return CudaNdarray_Conv(img, kern, out, mode, 1, 1, -1, 0);
}
int CudaNdarray_conv(const CudaNdarray *img, const CudaNdarray * kern, CudaNdarray * out, const int mode);
void fprint_CudaNdarray(FILE * fd, const CudaNdarray *self)
{
fprintf(fd, "CudaNdarray <%p, %p> nd=%i \n", self, self->devdata, self->nd);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论