Skip to content

conv_layer_struct

This structure contains all parameters necessary for Convolutional layers.

#include <layer.h>

Public Attributes

Name
uint32_t CO
uint32_t CI
uint32_t IH
uint32_t IW
uint32_t OH
uint32_t OW
uint32_t FH
uint32_t FW
uint32_t pad
double * ifmap
double * weights
double * ofmap
uint32_t TILE_CI
uint32_t cluster2cluster
uint32_t im2col
double * gamma
double * beta
precision_t dtype

Public Attributes Documentation

variable CO

uint32_t CO;

Number of output channels

variable CI

uint32_t CI;

Number of input channels

variable IH

uint32_t IH;

Height of input feature map

variable IW

uint32_t IW;

Width of input feature map

variable OH

uint32_t OH;

Height of output feature map

variable OW

uint32_t OW;

Width of output feature map

variable FH

uint32_t FH;

Height of filter

variable FW

uint32_t FW;

Width of filter

variable pad

uint32_t pad;

Padding on all sides

variable ifmap

double * ifmap;

Pointer to input feature map

variable weights

double * weights;

Pointer to weights

variable ofmap

double * ofmap;

Pointer to output feature map

variable TILE_CI

uint32_t TILE_CI;

Tiling factor of input channel

variable cluster2cluster

uint32_t cluster2cluster;

Flag for enabling cluster 2 cluster communication

variable im2col

uint32_t im2col;

Flag for enabling im2col + GEMM

variable gamma

double * gamma;

Pointer to gamma for BatchNorm

variable beta

double * beta;

Pointer to beta for BatchNorm

variable dtype

precision_t dtype;

Updated on 2023-06-19 at 09:43:56 +0000