Skip to main content

Module error

Module error 

Source
Expand description

Error types for the tenferro runtime crate.

§Examples

use tenferro_runtime::error::{Error, ErrorPhase};

let err = Error::invalid_argument(
    "einsum",
    ErrorPhase::GraphBuild,
    "subscripts",
    "bad label",
);
assert!(err.to_string().contains("bad label"));

Structs§

ContextId
Opaque identifier for an eager AD runtime, used in Error::ContextMismatch.

Enums§

Error
Errors produced by einsum, eval, and other tenferro operations.
ErrorPhase
Phase at which a runtime failure was discovered.
ShapeConstraintEvalError
Typed reason that a symbolic shape constraint could not be evaluated.

Type Aliases§

BoxError
Boxed source used when a runtime registry or compiler subsystem crosses the runtime error boundary with a concrete error owned by another crate.
Result
Result type alias for tenferro operations.