oa::ml::ModuleRegistry
Constructor-owned structural registry for one Module. Registration requires &mut self, so a module’s parameter/buffer/child tree is fixed before the module is shared through Rc.
Declaration
pub struct ModuleRegistry { /* private fields */ }Public Rust declaration.
Public Methods
pub fn register_parameter( &mut self, name: impl Into<String>, parameter: Parameter, ) -> Result<()>pub fn register_buffer( &mut self, name: impl Into<String>, data: Matrix, persistent: bool, ) -> Result<()>Associated Functions
Public Method Documentation
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.