Enum alumina::graph::ErrorKind [−]
pub enum ErrorKind { Msg(String), ShapeError(ErrorKind), StorageDataMarkedNotRequired, StorageDataDeallocated, StorageDataAlreadyBorrowed, StorageDataAlreadyMutablyBorrowed, NodeNameConflict(String), NodeTagNameConflict(String), OpNameConflict(String), OpTagNameConflict(String), ParameterNodesMustHaveKnownSize(String, NodeShape), ZeroNodesMatchTag(NodeTag), MultipleNodesMatchTag(NodeTag), ZeroOpsMatchTag(OpTag), MultipleOpsMatchTag(OpTag), GraphContainsCircularOps(Vec<(OpID, Vec<NodeID>)>), GraphContainsCircularPasses(Vec<(PassID, Vec<DataID>)>), SubgraphInsufficientInputsForOutputs(Vec<String>), SubgraphInsufficientInputsForShapeInference(Vec<String>), InputSizeError, StaticInputBroadcastFailure(NodeID, Vec<Ix>, Vec<Ix>), StorageImmutableBorrowError(String, String), StorageMutableBorrowError(String, String), ShapePropagationError(String, String), PassError(String, String), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
ShapeError(ErrorKind)
StorageDataMarkedNotRequired
This errorkind indicates that the data requested was never allocated as it was not a required component of the subgraph.
StorageDataDeallocated
This errorkind indicates that the data requested has already been deallocated. Ensure that it was included in the output used to define the subgraph being executed.
StorageDataAlreadyBorrowed
This errorkind indicates that data requested cannot be mutably borrowed as it has already been immutably borrowed. Borrows are not reset until after the pass has completed.
StorageDataAlreadyMutablyBorrowed
This errorkind indicates that data requested cannot be borrowed as it has already been mutably borrowed. Borrows are not reset until after the pass has completed.
NodeNameConflict(String)
This errorkind indicates that two identical node names have been supplied. Node names must be unique.
NodeTagNameConflict(String)
This errorkind indicates that the node name supplied is identical to a node tag. Node names must be unique.
OpNameConflict(String)
This errorkind indicates that two identical op names have been supplied. Op names must be unique.
OpTagNameConflict(String)
This errorkind indicates that the op name supplied is identical to an op tag. Op names must be unique.
ParameterNodesMustHaveKnownSize(String, NodeShape)
This errorkind indicates that a node was marked as a Parameter
did not have a Known size.
Parameter node shapes cannot contain any Unknown
or Interval
dimensions.
ZeroNodesMatchTag(NodeTag)
Could not find any nodes matching the tag supplied
MultipleNodesMatchTag(NodeTag)
Found more than one nodes matching the tag supplied, use the method for multiple NodeIDs.
ZeroOpsMatchTag(OpTag)
Could not find any ops matching the tag supplied
MultipleOpsMatchTag(OpTag)
Found more than one ops matching the tag supplied, use the method for multiple OpIDs.
GraphContainsCircularOps(Vec<(OpID, Vec<NodeID>)>)
A topological sort could not be completed, due to circular dependencies.
GraphContainsCircularPasses(Vec<(PassID, Vec<DataID>)>)
A topological sort could not be completed, due to circular dependencies.
SubgraphInsufficientInputsForOutputs(Vec<String>)
The outputs of the subgraph are not computable from the inputs
SubgraphInsufficientInputsForShapeInference(Vec<String>)
Some NodeShapes
could not be inferred
InputSizeError
StaticInputBroadcastFailure(NodeID, Vec<Ix>, Vec<Ix>)
StorageImmutableBorrowError(String, String)
Occurs when a pass immutably accesses data at a data_ID not listed as an input or output dependency
StorageMutableBorrowError(String, String)
Occurs when a pass mutably accesses data at a data_ID not listed as an output dependency
ShapePropagationError(String, String)
PassError(String, String)
Generic error to be returned from the run()
method of a Pass
Methods
impl ErrorKind
impl ErrorKind
pub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
impl From<ErrorKind> for Error
impl Debug for ErrorKind
impl Debug for ErrorKind
impl Display for ErrorKind
impl Display for ErrorKind
impl From<ErrorKind> for ErrorKind
impl From<ErrorKind> for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl From<String> for ErrorKind
impl From<String> for ErrorKind
impl From<Error> for ErrorKind
impl From<Error> for ErrorKind