mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
shortcut layers, msr networks
This commit is contained in:
@ -3,15 +3,15 @@
|
||||
#define NETWORK_H
|
||||
|
||||
#include "image.h"
|
||||
#include "detection_layer.h"
|
||||
#include "layer.h"
|
||||
#include "data.h"
|
||||
#include "params.h"
|
||||
|
||||
typedef enum {
|
||||
CONSTANT, STEP, EXP, POLY, STEPS, SIG
|
||||
} learning_rate_policy;
|
||||
|
||||
typedef struct {
|
||||
typedef struct network{
|
||||
int n;
|
||||
int batch;
|
||||
int *seen;
|
||||
@ -43,6 +43,15 @@ typedef struct {
|
||||
#endif
|
||||
} network;
|
||||
|
||||
typedef struct network_state {
|
||||
float *truth;
|
||||
float *input;
|
||||
float *delta;
|
||||
int train;
|
||||
int index;
|
||||
network net;
|
||||
} network_state;
|
||||
|
||||
#ifdef GPU
|
||||
float train_network_datum_gpu(network net, float *x, float *y);
|
||||
float *network_predict_gpu(network net, float *input);
|
||||
|
Reference in New Issue
Block a user