Enum burn::tensor::repr::NumericOperationDescription
pub enum NumericOperationDescription<E> {
Show 45 variants
Add(BinaryOperationDescription),
AddScalar(ScalarOperationDescription<E>),
Sub(BinaryOperationDescription),
SubScalar(ScalarOperationDescription<E>),
Div(BinaryOperationDescription),
DivScalar(ScalarOperationDescription<E>),
RemScalar(ScalarOperationDescription<E>),
Mul(BinaryOperationDescription),
MulScalar(ScalarOperationDescription<E>),
Abs(UnaryOperationDescription),
Ones(TensorDescription),
Zeros(TensorDescription),
Full((TensorDescription, E)),
Gather(GatherOperationDescription),
Scatter(ScatterOperationDescription),
Select(SelectOperationDescription),
SelectAssign(SelectAssignOperationDescription),
MaskWhere(MaskWhereOperationDescription),
MaskFill(MaskFillOperationDescription<E>),
MeanDim(ScalarOperationDescription<usize>),
Mean(UnaryOperationDescription),
Sum(UnaryOperationDescription),
SumDim(ScalarOperationDescription<usize>),
Prod(UnaryOperationDescription),
ProdDim(ScalarOperationDescription<usize>),
EqualElem(ScalarOperationDescription<E>),
Greater(BinaryOperationDescription),
GreaterElem(ScalarOperationDescription<E>),
GreaterEqual(BinaryOperationDescription),
GreaterEqualElem(ScalarOperationDescription<E>),
Lower(BinaryOperationDescription),
LowerElem(ScalarOperationDescription<E>),
LowerEqual(BinaryOperationDescription),
LowerEqualElem(ScalarOperationDescription<E>),
ArgMax(ScalarOperationDescription<usize>),
ArgMin(ScalarOperationDescription<usize>),
Max(UnaryOperationDescription),
MaxDimWithIndices(ReduceDimWithIndicesDescription),
MinDimWithIndices(ReduceDimWithIndicesDescription),
Min(UnaryOperationDescription),
MaxDim(ScalarOperationDescription<usize>),
MinDim(ScalarOperationDescription<usize>),
Clamp(ClampOperationDescription<E>),
IntRandom(RandomOperationDescription),
Powf(BinaryOperationDescription),
}
Expand description
Numeric operations on int and float tensors.
Variants§
Add(BinaryOperationDescription)
AddScalar(ScalarOperationDescription<E>)
Operation corresponding to:
Float => add scalar. Int => add scalar.
Sub(BinaryOperationDescription)
SubScalar(ScalarOperationDescription<E>)
Operation corresponding to:
Float => sub scalar. Int => sub scalar.
Div(BinaryOperationDescription)
DivScalar(ScalarOperationDescription<E>)
Operation corresponding to:
Float => div scalar. Int => div scalar.
RemScalar(ScalarOperationDescription<E>)
Mul(BinaryOperationDescription)
MulScalar(ScalarOperationDescription<E>)
Operation corresponding to:
Float => mul scalar. Int => mul scalar.
Abs(UnaryOperationDescription)
Ones(TensorDescription)
Zeros(TensorDescription)
Full((TensorDescription, E))
Gather(GatherOperationDescription)
Scatter(ScatterOperationDescription)
Select(SelectOperationDescription)
SelectAssign(SelectAssignOperationDescription)
Operation corresponding to:
Float => select assign. Int => select assign.
MaskWhere(MaskWhereOperationDescription)
Operation corresponding to:
Float => mask where. Int => mask where.
MaskFill(MaskFillOperationDescription<E>)
MeanDim(ScalarOperationDescription<usize>)
Mean(UnaryOperationDescription)
Sum(UnaryOperationDescription)
SumDim(ScalarOperationDescription<usize>)
Prod(UnaryOperationDescription)
ProdDim(ScalarOperationDescription<usize>)
EqualElem(ScalarOperationDescription<E>)
Operation corresponding to:
Float => equal elem. Int => equal elem.
Greater(BinaryOperationDescription)
GreaterElem(ScalarOperationDescription<E>)
Operation corresponding to:
Float => greater elem. Int => greater elem.
GreaterEqual(BinaryOperationDescription)
Operation corresponding to:
Float => greater equal. Int => greater elem.
GreaterEqualElem(ScalarOperationDescription<E>)
Operation corresponding to:
Float => greater equal elem. Int => greater equal elem.
Lower(BinaryOperationDescription)
LowerElem(ScalarOperationDescription<E>)
Operation corresponding to:
Float => lower elem. Int => lower elem.
LowerEqual(BinaryOperationDescription)
Operation corresponding to:
Float => lower equal. Int => lower equal.
LowerEqualElem(ScalarOperationDescription<E>)
Operation corresponding to:
Float => lower equal elem. Int => lower equal elem.
ArgMax(ScalarOperationDescription<usize>)
ArgMin(ScalarOperationDescription<usize>)
Max(UnaryOperationDescription)
MaxDimWithIndices(ReduceDimWithIndicesDescription)
Operation corresponding to:
Float => max dim with indices. Int => max dim with indices.
MinDimWithIndices(ReduceDimWithIndicesDescription)
Operation corresponding to:
Float => min dim with indices. Int => min dim with indices.
Min(UnaryOperationDescription)
MaxDim(ScalarOperationDescription<usize>)
MinDim(ScalarOperationDescription<usize>)
Clamp(ClampOperationDescription<E>)
IntRandom(RandomOperationDescription)
Operation corresponding to:
Int => random.
Powf(BinaryOperationDescription)
Trait Implementations§
§impl<E> Clone for NumericOperationDescription<E>where
E: Clone,
impl<E> Clone for NumericOperationDescription<E>where
E: Clone,
§fn clone(&self) -> NumericOperationDescription<E>
fn clone(&self) -> NumericOperationDescription<E>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl<E> Debug for NumericOperationDescription<E>where
E: Debug,
impl<E> Debug for NumericOperationDescription<E>where
E: Debug,
§impl<'de, E> Deserialize<'de> for NumericOperationDescription<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for NumericOperationDescription<E>where
E: Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NumericOperationDescription<E>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NumericOperationDescription<E>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl<E> Hash for NumericOperationDescription<E>
impl<E> Hash for NumericOperationDescription<E>
§impl<E> PartialEq for NumericOperationDescription<E>where
E: PartialEq,
impl<E> PartialEq for NumericOperationDescription<E>where
E: PartialEq,
§impl<E> Serialize for NumericOperationDescription<E>where
E: Serialize,
impl<E> Serialize for NumericOperationDescription<E>where
E: Serialize,
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl<E> StructuralPartialEq for NumericOperationDescription<E>
Auto Trait Implementations§
impl<E> Freeze for NumericOperationDescription<E>where
E: Freeze,
impl<E> RefUnwindSafe for NumericOperationDescription<E>where
E: RefUnwindSafe,
impl<E> Send for NumericOperationDescription<E>where
E: Send,
impl<E> Sync for NumericOperationDescription<E>where
E: Sync,
impl<E> Unpin for NumericOperationDescription<E>where
E: Unpin,
impl<E> UnwindSafe for NumericOperationDescription<E>where
E: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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