You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.6 KiB
67 lines
1.6 KiB
#ifndef __CORTEX_PARSER_HEADER__
|
|
#define __CORTEX_PARSER_HEADER__
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
/*#include "activation_layer.h"
|
|
#include "activations.h"
|
|
#include "assert.h"
|
|
#include "avgpool_layer.h"
|
|
#include "batchnorm_layer.h"
|
|
#include "blas.h"
|
|
#include "connected_layer.h"
|
|
#include "convolutional_layer.h"
|
|
#include "cost_layer.h"
|
|
#include "crnn_layer.h"
|
|
#include "crop_layer.h"
|
|
#include "detection_layer.h"
|
|
#include "dropout_layer.h"
|
|
#include "gru_layer.h"
|
|
#include "list.h"
|
|
#include "local_layer.h"
|
|
#include "maxpool_layer.h"
|
|
#include "normalization_layer.h"
|
|
#include "option_list.h"
|
|
#include "parser.h"
|
|
#include "region_layer.h"
|
|
#include "reorg_layer.h"
|
|
#include "rnn_layer.h"
|
|
#include "route_layer.h"
|
|
#include "shortcut_layer.h"
|
|
#include "softmax_layer.h"
|
|
#include "utils.h"
|
|
*/
|
|
#include <stdint.h>
|
|
|
|
#include "basicCortex.h"
|
|
#include "basicList.h"
|
|
|
|
typedef struct S_Section{
|
|
char * type;
|
|
cortexList * options;
|
|
} section;
|
|
|
|
typedef struct S_sizeParams{
|
|
int batch;
|
|
int inputs;
|
|
int h;
|
|
int w;
|
|
int c;
|
|
int index;
|
|
int time_steps;
|
|
basicCortex *net;
|
|
} sizeParams;
|
|
|
|
cortexList * readCfg( char * filename );
|
|
|
|
basicCortex * parseNetCfg( char * filename);
|
|
basicCortex * parseNetCfgCustom( char * filename, int batch);
|
|
void saveNet( basicCortex * net, char *filename);
|
|
void saveWeights( basicCortex * net, char *filename);
|
|
void saveWeightsUpto( basicCortex * net, char *filename, int cutoff);
|
|
void saveWeightsDouble( basicCortex * net, char *filename);
|
|
void loadWeights( basicCortex * net, char *filename);
|
|
void loadWeightsUpto( basicCortex * net, char *filename, int cutoff);
|
|
|
|
#endif
|