Compile fix

This commit is contained in:
AlexeyAB
2019-03-02 03:37:55 +03:00
parent 75f2a3e7cf
commit dd0fdfb684
2 changed files with 15 additions and 52 deletions

View File

@ -11,8 +11,10 @@ void free_layer(layer l)
if (l.output_layer) free_layer(*l.output_layer);
l.output = NULL;
l.delta = NULL;
#ifdef GPU
l.output_gpu = NULL;
l.delta_gpu = NULL;
#endif // GPU
}
if (l.type == DROPOUT) {
if (l.rand) free(l.rand);