neural-redis icon indicating copy to clipboard operation
neural-redis copied to clipboard

Refactoring for use in https://github.com/mingodad/squilu

Open mingodad opened this issue 7 years ago • 0 comments

This is my latest refactoring of neural-redis, I did it to learn/understand it and to use with https://github.com/mingodad/squilu

The code for AVX and AVX512 still use unaligned memory because on some machine it doesn't work with aligned memory.

The random initialisation used in tests/nn-benchmark.c wasn't working properly so I changed the it to have a better entropy.

Added a function "Ann2Js" to generate a javascript function emulating the trained network, also fixed/changed the generated TCL in "An2Tcl" because it was broken.

I'm still do not like/understand the way weight/gradient/pgradient/delta are indexed but I could not find a better working way till now.

This is here just in case it can be util to other people too.

Cheers !

mingodad avatar Jul 02 '18 09:07 mingodad