Trait tract_core::ops::binary::BinMiniOp [−][src]
pub trait BinMiniOp: Debug + DynClone + Send + Sync + 'static + Downcast + DynHash {}Show methods
fn name(&self) -> &'static str; fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>; fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>; fn eval_unicast_in_place(
&self,
a: &Tensor,
b: &mut Tensor
) -> TractResult<()>; fn eval_uniform_in_place(
&self,
a: &Tensor,
b: &mut Tensor
) -> TractResult<()>; fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>; fn validation(&self) -> Validation { ... } fn generic_eval(
&self,
a: Arc<Tensor>,
b: Arc<Tensor>
) -> TractResult<Tensor> { ... } fn eval(&self, a: Arc<Tensor>, b: Arc<Tensor>) -> TractResult<Tensor> { ... } fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp> { ... } fn declutter_bin(
&self,
model: &TypedModel,
node: &TypedNode
) -> TractResult<Option<TypedModelPatch>> { ... } fn declutter_unary(
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>> { ... } fn cost_per_element(&self, dt: DatumType) -> TVec<(Cost, usize)> { ... }
Required methods
fn name(&self) -> &'static str
[src]
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
Provided methods
fn validation(&self) -> Validation
[src]
fn generic_eval(&self, a: Arc<Tensor>, b: Arc<Tensor>) -> TractResult<Tensor>
[src]
fn eval(&self, a: Arc<Tensor>, b: Arc<Tensor>) -> TractResult<Tensor>
[src]
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
fn declutter_bin(
&self,
model: &TypedModel,
node: &TypedNode
) -> TractResult<Option<TypedModelPatch>>
[src]
&self,
model: &TypedModel,
node: &TypedNode
) -> TractResult<Option<TypedModelPatch>>
fn declutter_unary(
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
[src]
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
fn cost_per_element(&self, dt: DatumType) -> TVec<(Cost, usize)>
[src]
Implementations
impl dyn BinMiniOp
[src]
pub fn is<__T: BinMiniOp>(&self) -> bool
[src]
Returns true if the trait object wraps an object of type __T
.
pub fn downcast<__T: BinMiniOp>(self: Box<Self>) -> Result<Box<__T>, Box<Self>>
[src]
Returns a boxed object from a boxed trait object if the underlying object is of type
__T
. Returns the original boxed trait if it isn’t.
pub fn downcast_rc<__T: BinMiniOp>(self: Rc<Self>) -> Result<Rc<__T>, Rc<Self>>
[src]
Returns an Rc
-ed object from an Rc
-ed trait object if the underlying object is of
type __T
. Returns the original Rc
-ed trait if it isn’t.
pub fn downcast_ref<__T: BinMiniOp>(&self) -> Option<&__T>
[src]
Returns a reference to the object within the trait object if it is of type __T
, or
None
if it isn’t.
pub fn downcast_mut<__T: BinMiniOp>(&mut self) -> Option<&mut __T>
[src]
Returns a mutable reference to the object within the trait object if it is of type
__T
, or None
if it isn’t.
Implementors
impl BinMiniOp for And
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
impl BinMiniOp for Equals
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
[src]
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
impl BinMiniOp for Greater
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
[src]
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for GreaterEqual
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
[src]
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for Lesser
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
[src]
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for LesserEqual
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
[src]
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for NotEquals
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
[src]
&self,
_a: DatumType,
_b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
impl BinMiniOp for Or
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
impl BinMiniOp for Xor
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
impl BinMiniOp for Add
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
fn declutter_unary(
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
[src]
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
fn validation(&self) -> Validation
[src]
impl BinMiniOp for Div
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
fn declutter_bin(
&self,
model: &TypedModel,
node: &TypedNode
) -> TractResult<Option<TypedModelPatch>>
[src]
&self,
model: &TypedModel,
node: &TypedNode
) -> TractResult<Option<TypedModelPatch>>
fn cost_per_element(&self, dt: DatumType) -> TVec<(Cost, usize)>
[src]
impl BinMiniOp for FlippedPow
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for FlippedShiftLeft
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for FlippedShiftRight
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for Max
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
impl BinMiniOp for Min
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
impl BinMiniOp for Mul
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
fn declutter_unary(
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
[src]
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
fn cost_per_element(&self, dt: DatumType) -> TVec<(Cost, usize)>
[src]
impl BinMiniOp for Pow
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for Rem
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn eval(&self, a: Arc<Tensor>, b: Arc<Tensor>) -> TractResult<Tensor>
[src]
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for ShiftLeft
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for ShiftRight
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
impl BinMiniOp for Sub
[src]
fn name(&self) -> &'static str
[src]
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn unary_with_b_const(&self, b: &Arc<Tensor>) -> Option<UnaryOp>
[src]
fn declutter_unary(
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
[src]
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
impl BinMiniOp for Scale
[src]
fn name(&self) -> &'static str
[src]
fn result_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn operating_datum_type(
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
[src]
&self,
a: DatumType,
b: DatumType
) -> TractResult<DatumType>
fn eval_uniform_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_unicast_in_place(&self, a: &Tensor, b: &mut Tensor) -> TractResult<()>
[src]
fn eval_out_of_place(
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
[src]
&self,
c: &mut Tensor,
a: &Tensor,
b: &Tensor
) -> TractResult<()>
fn declutter_unary(
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>
[src]
&self,
model: &TypedModel,
node: &TypedNode,
a: &Arc<Tensor>
) -> TractResult<Option<TypedModelPatch>>