| | |
| | | #ifndef NETWORK_H |
| | | #define NETWORK_H |
| | | |
| | | #include "image.h" |
| | | #include <stdint.h> |
| | | #include "layer.h" |
| | | |
| | | #ifdef __cplusplus |
| | | extern "C" { |
| | | #endif |
| | | |
| | | #include "image.h" |
| | | #include "data.h" |
| | | #include "tree.h" |
| | | |
| | |
| | | float *workspace; |
| | | int n; |
| | | int batch; |
| | | int *seen; |
| | | int *seen; |
| | | float epoch; |
| | | int subdivisions; |
| | | float momentum; |
| | |
| | | #ifdef GPU |
| | | float **input_gpu; |
| | | float **truth_gpu; |
| | | float **input16_gpu; |
| | | float **output16_gpu; |
| | | size_t *max_input16_size; |
| | | size_t *max_output16_size; |
| | | int wait_stream; |
| | | #endif |
| | | } network; |
| | | |
| | |
| | | int get_network_nuisance(network net); |
| | | int get_network_background(network net); |
| | | |
| | | #ifdef __cplusplus |
| | | } |
| | | #endif |
| | | |
| | | #endif |
| | | |