darknet  v3
cost_layer.h
Go to the documentation of this file.
1 #ifndef COST_LAYER_H
2 #define COST_LAYER_H
3 #include "layer.h"
4 #include "network.h"
5 
6 typedef layer cost_layer;
7 
8 COST_TYPE get_cost_type(char *s);
10 cost_layer make_cost_layer(int batch, int inputs, COST_TYPE type, float scale);
13 void resize_cost_layer(cost_layer *l, int inputs);
14 
15 #ifdef GPU
16 void forward_cost_layer_gpu(cost_layer l, network net);
17 void backward_cost_layer_gpu(const cost_layer l, network net);
18 #endif
19 
20 #endif
COST_TYPE get_cost_type(char *s)
Definition: cost_layer.c:10
cost_layer make_cost_layer(int batch, int inputs, COST_TYPE type, float scale)
Definition: cost_layer.c:41
void forward_cost_layer(const cost_layer l, network net)
Definition: cost_layer.c:82
void resize_cost_layer(cost_layer *l, int inputs)
Definition: cost_layer.c:68
layer cost_layer
Definition: cost_layer.h:6
COST_TYPE
Definition: darknet.h:97
void backward_cost_layer(const cost_layer l, network net)
Definition: cost_layer.c:101
char * get_cost_string(COST_TYPE a)
Definition: cost_layer.c:22
Definition: darknet.h:119