If your networks are small and allocations really are the bottleneck, you could take a look at SimpleChains.jl. I believe itβs still experimental, but it allows for preallocating certain buffers whereas Flux does pretty much everything out-of-place (mostly for AD compat).
Thanks for the suggested package - it seems like it maybe could do the trick. However, the referenced repo does not seem to exist anymore - at least the GH URL https://github.com/JuliaSIMD/SimpleChains.jl gives me a 404.
As ToucheSir noted, itβs been made private.
When/if it can be opened again will require an internal discussion/ business plan delineating how/where it fits.
It almost certainly wonβt be a product itself, but may be a piece of some other offering, so I think we should open it.
I jumped the gun by creating it as an open repo in the first placeβ¦
Thanks for the clarification. Thus, to conclude, there does not seem to be a βcanonicalβ Julia package for ANN models available at the moment that does not allocate during each model evaluation. Thatβs too bad, and I would like to - in case anyone cares - express strong interest in having such an option available for Julia!