pub enum Error {
StdError(String),
UnknownError(String),
InvalidFilename(String),
UnsupportedOnnxOpsetVersion(String),
OnnxParseError(String),
InvalidDtype(String),
InvalidAttributeType(String),
UnsupportedOperatorAttribute(String),
DimensionMismatch(String),
VariableNotFound(String),
IndexOutOfRange(String),
JsonParseError(String),
InvalidBackendName(String),
UnsupportedOperator(String),
FailedToConfigureOperator(String),
BackendError(String),
SameNamedVariableAlreadyExist(String),
UnsupportedInputDims(String),
SameNamedParameterAlreadyExist(String),
SameNamedAttributeAlreadyExist(String),
InvalidBackendConfigError(String),
InputNotFoundError(String),
OutputNotFoundError(String),
DtypeMismatch {
actual: menoh_dtype,
expected: menoh_dtype,
},
NulError(NulError),
}
Fields of DtypeMismatch
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static