SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 类型 | 静态 Public 成员函数
convolve< Backend, Matrix > 模板结构体 参考

详细描述

template<enum Backend, class Matrix>
struct shogun::linalg::implementation::convolve< Backend, Matrix >

Generic class which is specialized for different backends to perform the convolve operation

在文件 Convolve.h62 行定义.

Public 类型

typedef Matrix::Scalar T
 

静态 Public 成员函数

static void compute (Matrix X, Matrix W, Matrix Y, bool flip, bool overwrite, int32_t stride_x, int32_t stride_y)
 

成员类型定义说明

typedef Matrix::Scalar T

The scalar type

在文件 Convolve.h65 行定义.

成员函数说明

static void compute ( Matrix  X,
Matrix  W,
Matrix  Y,
bool  flip,
bool  overwrite,
int32_t  stride_x,
int32_t  stride_y 
)
static

Computes the 2D convolution of X with W

NOTE: For the ViennaCL backend, the size of W (number of bytes) must not exceed CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE.

参数
XInput image
WFilter coefficients. The dimensions of the matrix must be odd-numbered.
YOutput image of the same size as the input image, as the borders of the input image are implicitly padded with zeros during the computation
flipIf true the filter coefficients are flipped, performing cross-correlation instead of convolution
overwriteIf true, the values in Y are overwritten with result of the computation. Otherwise, the result is added to the existing values in Y.
stride_xStride in the x (column) direction
stride_yStride in the y (row) direction

该结构体的文档由以下文件生成:

SHOGUN 机器学习工具包 - 项目文档