concision_core/params/
error.rs

1/*
2    Appellation: error <module>
3    Contrib: @FL03
4*/
5
6/// the [`ParamsError`] enumerates various errors that can occur within the parameters of a
7/// neural network.
8#[derive(Debug, thiserror::Error)]
9pub enum ParamsError {
10    #[error("Dimension Error: {0}")]
11    DimensionalError(String),
12    #[error("Invalid biases")]
13    InvalidBiases,
14    #[error("Invalid weights")]
15    InvalidWeights,
16    #[error("Invalid input shape")]
17    InvalidInputShape,
18    #[error("Invalid output shape")]
19    InvalidOutputShape,
20    #[error("Invalid parameter: {0}")]
21    InvalidParameter(String),
22    #[error("Invalid parameter type")]
23    InvalidParameterType,
24    #[error("Invalid parameter value")]
25    InvalidParameterValue,
26}