mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
improve compatibility with c++ compilers, prepare for CMake
This commit is contained in:
@ -2,6 +2,9 @@
|
||||
#define PARSER_H
|
||||
#include "network.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
network parse_network_cfg(char *filename);
|
||||
network parse_network_cfg_custom(char *filename, int batch, int time_steps);
|
||||
void save_network(network net, char *filename);
|
||||
@ -11,4 +14,7 @@ void save_weights_double(network net, char *filename);
|
||||
void load_weights(network *net, char *filename);
|
||||
void load_weights_upto(network *net, char *filename, int cutoff);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user