pub struct BinaryOp;Expand description
Shape inference for binary operators.
These operators take two inputs and return an output whose shape is the result of broadcasting the two input shapes together following ONNX’s broadcasting rules.
Trait Implementations§
Source§impl InferShapes for BinaryOp
impl InferShapes for BinaryOp
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 BinaryOp
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnwindSafe for BinaryOp
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