std :: ml::convnet
Struct std::ConvLayer
struct ConvLayer {
int kind;
int act;
unsigned long inC;
unsigned long inH;
unsigned long inW;
unsigned long outC;
unsigned long outH;
unsigned long outW;
struct Conv2dSpec conv;
struct Pool2dSpec pool;
unsigned long factor;
int mode;
int flag;
float prob;
unsigned long slot;
unsigned long skipC;
unsigned long skipH;
unsigned long skipW;
unsigned long param;
unsigned long buffer;
int spectral;
}Fields
CONV_LAYER_*
ACT_* after the layer
CONV / DECONV, and ADD's projection
MAXPOOL / AVGPOOL
UPSAMPLE factor, GROUPNORM groups
RESIZE mode
RESIZE alignCorners, DROPOUT by channel, ADD projection
DROPOUT
SAVE / ADD / CONCAT
ADD / CONCAT: the saved activation's geometry
first trained tensor's index in params (weight / gamma; bias / beta next)
BATCHNORM running mean (variance next), spectral norm's u, DROPOUT's rng
CONV / DECONV / DENSE: weight spectrally normalized (u in buffers[buffer])