idk
Joseph Redmon
2016-01-18 1578ec70d751231218c869d345404ea68be9e5e8
src/layer.h
@@ -3,6 +3,9 @@
#include "activations.h"
struct layer;
typedef struct layer layer;
typedef enum {
    CONVOLUTIONAL,
    DECONVOLUTIONAL,
@@ -16,20 +19,23 @@
    COST,
    NORMALIZATION,
    AVGPOOL,
    LOCAL
    LOCAL,
    SHORTCUT,
    ACTIVE
} LAYER_TYPE;
typedef enum{
    SSE, MASKED
} COST_TYPE;
typedef struct {
struct layer{
    LAYER_TYPE type;
    ACTIVATION activation;
    COST_TYPE cost_type;
    int batch_normalize;
    int batch;
    int forced;
    int flipped;
    int inputs;
    int outputs;
    int truths;
@@ -41,10 +47,9 @@
    int side;
    int stride;
    int pad;
    int crop_width;
    int crop_height;
    int sqrt;
    int flip;
    int index;
    float angle;
    float jitter;
    float saturation;
@@ -144,7 +149,7 @@
    float * squared_gpu;
    float * norms_gpu;
    #endif
} layer;
};
void free_layer(layer);