src/network.h
@@ -7,10 +7,11 @@ #include "data.h" typedef enum { CONSTANT, STEP, EXP, POLY, STEPS, SIG CONSTANT, STEP, EXP, POLY, STEPS, SIG, RANDOM } learning_rate_policy; typedef struct network{ float *workspace; int n; int batch; int *seen; @@ -33,12 +34,15 @@ float *scales; int *steps; int num_steps; int burn_in; int inputs; int h, w, c; int max_crop; int min_crop; int gpu_index; #ifdef GPU float **input_gpu; float **truth_gpu; @@ -49,6 +53,7 @@ float *truth; float *input; float *delta; float *workspace; int train; int index; network net;