mirror of https://github.com/AlexeyAB/darknet.git
commit
c13db432bd
|
@ -984,6 +984,7 @@ LIB_API network *load_network(char *cfg, char *weights, int clear);
|
|||
LIB_API network *load_network_custom(char *cfg, char *weights, int clear, int batch);
|
||||
LIB_API network *load_network(char *cfg, char *weights, int clear);
|
||||
LIB_API void free_network(network net);
|
||||
LIB_API void free_network_ptr(network* net);
|
||||
|
||||
// network.c
|
||||
LIB_API load_args get_base_args(network *net);
|
||||
|
|
|
@ -1164,6 +1164,11 @@ float network_accuracy_multi(network net, data d, int n)
|
|||
return acc;
|
||||
}
|
||||
|
||||
void free_network_ptr(network* net)
|
||||
{
|
||||
free_network(*net);
|
||||
}
|
||||
|
||||
void free_network(network net)
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue