pub struct Scirs2ShapeInference { /* private fields */ }Expand description
Shape inference engine for SciRS2 backend
Implementations§
Source§impl Scirs2ShapeInference
impl Scirs2ShapeInference
Sourcepub fn register_shape(&mut self, name: String, shape: Vec<usize>)
pub fn register_shape(&mut self, name: String, shape: Vec<usize>)
Register a tensor shape
Sourcepub fn infer_graph_shapes(
&mut self,
graph: &EinsumGraph,
executor: &Scirs2Exec,
) -> Result<ShapeInferenceContext, ExecutorError>
pub fn infer_graph_shapes( &mut self, graph: &EinsumGraph, executor: &Scirs2Exec, ) -> Result<ShapeInferenceContext, ExecutorError>
Infer shapes for all tensors in a graph
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scirs2ShapeInference
impl RefUnwindSafe for Scirs2ShapeInference
impl Send for Scirs2ShapeInference
impl Sync for Scirs2ShapeInference
impl Unpin for Scirs2ShapeInference
impl UnwindSafe for Scirs2ShapeInference
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more