Skip to content

Feat/autodiff nn - #1

Open
KellyKinyama wants to merge 4 commits into
abandoft:masterfrom
KellyKinyama:feat/autodiff-nn
Open

KellyKinyama wants to merge 4 commits into
abandoft:masterfrom
KellyKinyama:feat/autodiff-nn

Conversation

@KellyKinyama

Copy link
Copy Markdown

added automatic differentiation

Add scale() and axis-explicit addVector/subtractVector/multiplyVector/divideVector to Matrix64/Matrix32, plus Vector64/Vector32 scale(), giving a fully typed multiply path and removing the square-matrix broadcast ambiguity.
Add Variable (reverse-mode AD over Matrix64) with matmul/elementwise/activations/reductions, broadcast-with-reduce addRowVector, and memory-saving graph freeing in backward(). Add nn module: Module/Linear/ReLU/Tanh/Sigmoid/Sequential and SGD (with momentum)/Adam optimizers. Pure CPU on the existing SIMD kernels; no FFI.
@KellyKinyama

Copy link
Copy Markdown
Author

autodiff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant