| | |
| | | #endif |
| | | return; |
| | | } |
| | | if (l.mask) free(l.mask); |
| | | if (l.cweights) free(l.cweights); |
| | | if (l.indexes) free(l.indexes); |
| | | if (l.input_layers) free(l.input_layers); |
| | |
| | | if (l.scale_updates) free(l.scale_updates); |
| | | if (l.weights) free(l.weights); |
| | | if (l.weight_updates) free(l.weight_updates); |
| | | if (l.weights) free(l.align_bit_weights); |
| | | if (l.weights) free(l.mean_arr); |
| | | if (l.delta) free(l.delta); |
| | | if (l.output) free(l.output); |
| | | if (l.squared) free(l.squared); |
| | |
| | | if (l.x_norm_gpu) cuda_free(l.x_norm_gpu); |
| | | if (l.weights_gpu) cuda_free(l.weights_gpu); |
| | | if (l.weight_updates_gpu) cuda_free(l.weight_updates_gpu); |
| | | if (l.weights_gpu16) cuda_free(l.weights_gpu16); |
| | | if (l.weight_updates_gpu16) cuda_free(l.weight_updates_gpu16); |
| | | if (l.biases_gpu) cuda_free(l.biases_gpu); |
| | | if (l.bias_updates_gpu) cuda_free(l.bias_updates_gpu); |
| | | if (l.scales_gpu) cuda_free(l.scales_gpu); |