aiviaghost / SkalaNet

A simple neural network for classifying handwritten digits, implemented in Scala 3.
1 stars 0 forks source link

Investigate storing matrices as pointers instead of copying to-and-fro Arrays #8

Open aiviaghost opened 2 years ago

aiviaghost commented 2 years ago

Could allocate heap space for matrix representation inside class body and free the memory at the end of multiplication / addition operations. Class can accept a parameter to specify whether or not to free so the matrices representing the layers in the neuralnet can stay intact, even after say "feedforward" has been called.