pub struct VariadicOp;Expand description
Shape inference for variadic operators.
This is a generalization of BinaryOp to operators which take a variable
number of inputs whose shapes are broadcast against each other, using the
same rules.
Trait Implementations§
Source§impl InferShapes for VariadicOp
impl InferShapes for VariadicOp
Source§fn infer_shapes(
&self,
inputs: &[SymTensor],
sym_gen: &mut SymbolGen,
) -> Result<Vec<SymTensor>, InferShapesError>
fn infer_shapes( &self, inputs: &[SymTensor], sym_gen: &mut SymbolGen, ) -> Result<Vec<SymTensor>, InferShapesError>
Infer the shapes and optionally values of an operator’s outputs given
its inputs. Read more
Auto Trait Implementations§
impl Freeze for VariadicOp
impl RefUnwindSafe for VariadicOp
impl Send for VariadicOp
impl Sync for VariadicOp
impl Unpin for VariadicOp
impl UnwindSafe for VariadicOp
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