feat: implement neural network module system with PyTorch-like API
- Implement core modules: Linear, Embedding, RMSNorm - Add PyTorch-like macros for module and parameter definition - INFINICORE_NN_MODULE for single module declaration - INFINICORE_NN_MODULE_VEC for module vectors - INFINICORE_NN_PARAMETER for parameter declaration - Corresponding INIT macros for initialization - Implement hierarchical module system with dynamic path generation - Add state_dict() and load_state_dict() support - Refactor module design: protected registration methods, removed path_ member - Add comprehensive test suite including TinyLlama integration - All parameters are protected with public accessors
Showing
include/infinicore/nn.hpp
0 → 100644
src/infinicore/nn/linear.cc
0 → 100644
src/infinicore/nn/rmsnorm.cc
0 → 100644
Please register or sign in to comment