So I have this new programming paradigm.......

This commit is contained in:
Joseph Redmon
2016-09-24 23:12:54 -07:00
parent c899cc19f4
commit 481b57a96a
49 changed files with 629 additions and 914 deletions

View File

@ -4,6 +4,8 @@
#include "activations.h"
#include "stddef.h"
struct network_state;
struct layer;
typedef struct layer layer;
@ -42,6 +44,12 @@ struct layer{
LAYER_TYPE type;
ACTIVATION activation;
COST_TYPE cost_type;
void (*forward) (struct layer, struct network_state);
void (*backward) (struct layer, struct network_state);
void (*update) (struct layer, int, float, float, float);
void (*forward_gpu) (struct layer, struct network_state);
void (*backward_gpu) (struct layer, struct network_state);
void (*update_gpu) (struct layer, int, float, float, float);
int batch_normalize;
int shortcut;
int batch;