Merge pull request #4814 from Dev-Nash/master

Minor addition
This commit is contained in:
Alexey 2020-07-25 14:51:12 +03:00 committed by GitHub
commit c13db432bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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;