Expand description
Model operations for saving, loading and inference
This module provides high-level operations for:
- Saving models in ONNX format
- Loading models from ONNX format
- Running inference on loaded models
- Training support (forward/backward passes)
Re-exports§
pub use crate::llo::OnnxAttribute;pub use crate::llo::OnnxModel;pub use crate::llo::OnnxNode;pub use crate::llo::OnnxTensor;pub use crate::llo::TrainingState;
Functions§
- array_
to_ onnx_ tensor - Create a tensor from an Array
- create_
add_ node - Create an Add node
- create_
linear_ node - Create a linear layer node
- create_
matmul_ node - Create a MatMul node
- create_
mlp - Create a simple feedforward neural network model
- create_
relu_ node - Create a ReLU activation node
- create_
softmax_ node - Create a Softmax activation node
- deserialize_
onnx - Deserialize model from JSON string
- infer
- Run inference on a model
- load_
checkpoint - Load training checkpoint
- load_
onnx - Load model from ONNX format
- save_
checkpoint - Save training checkpoint
- save_
onnx - Save model to ONNX format
- serialize_
onnx - Serialize model to JSON string