instmodel_inference 0.2.0

High-performance neural network inference library with instruction-based execution
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Error types for the neural inference library.
//!
//! This module contains specific error types used throughout the library,
//! avoiding generic error wrappers like `anyhow` or `Box<dyn Error>` for better
//! error handling and debugging.

mod instruction_model_error;
mod validation_error;

pub use instruction_model_error::InstructionModelError;
pub use validation_error::ValidationError;

/// Result type alias for operations that may fail with neural inference errors.
pub type Result<T> = std::result::Result<T, InstructionModelError>;

/// Result type alias for validation operations.
pub type ValidationResult<T> = std::result::Result<T, ValidationError>;