free method
void
free()
Frees all VRAM allocations associated with the layers, including weights, biases, and intermediate caches.
Implementation
void free() {
for (int i = 0; i < layers.length; i = i + 1) {
layers[i].free();
}
}