pub struct GraphValidator;Expand description
Graph validator
Implementations§
Source§impl GraphValidator
impl GraphValidator
pub fn new() -> Self
Sourcepub fn validate(&self, graph: &EinsumGraph) -> ValidationResult
pub fn validate(&self, graph: &EinsumGraph) -> ValidationResult
Validate a complete execution graph
Sourcepub fn validate_or_error(
&self,
graph: &EinsumGraph,
) -> Result<(), ExecutorError>
pub fn validate_or_error( &self, graph: &EinsumGraph, ) -> Result<(), ExecutorError>
Quick validation that returns an error if graph is invalid
Sourcepub fn find_unreachable_nodes(&self, graph: &EinsumGraph) -> HashSet<usize>
pub fn find_unreachable_nodes(&self, graph: &EinsumGraph) -> HashSet<usize>
Check if graph has any unreachable nodes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphValidator
impl RefUnwindSafe for GraphValidator
impl Send for GraphValidator
impl Sync for GraphValidator
impl Unpin for GraphValidator
impl UnwindSafe for GraphValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more