Enum burn::tensor::repr::OperationDescription
pub enum OperationDescription {
BaseFloat(BaseOperationDescription),
BaseInt(BaseOperationDescription),
BaseBool(BaseOperationDescription),
NumericFloat(DType, NumericOperationDescription<f32>),
NumericInt(DType, NumericOperationDescription<i32>),
Bool(BoolOperationDescription),
Int(IntOperationDescription),
Float(DType, FloatOperationDescription),
Module(ModuleOperationDescription),
}
Expand description
Describe all tensor operations possible.
Variants§
BaseFloat(BaseOperationDescription)
Basic operation on a float tensor.
BaseInt(BaseOperationDescription)
Basic operation on an int tensor.
BaseBool(BaseOperationDescription)
Basic operation on a bool tensor.
NumericFloat(DType, NumericOperationDescription<f32>)
Numeric operation on a float tensor.
NumericInt(DType, NumericOperationDescription<i32>)
Numeric operation on an int tensor.
Bool(BoolOperationDescription)
Operation specific to a bool tensor.
Int(IntOperationDescription)
Operation specific to an int tensor.
Float(DType, FloatOperationDescription)
Operation specific to a float tensor.
Module(ModuleOperationDescription)
Module operation.
Implementations§
§impl OperationDescription
impl OperationDescription
pub fn nodes(&self) -> Vec<&TensorDescription>
pub fn nodes(&self) -> Vec<&TensorDescription>
Cleanup the remaining tensor handles that have not been used.
Trait Implementations§
§impl Clone for OperationDescription
impl Clone for OperationDescription
§fn clone(&self) -> OperationDescription
fn clone(&self) -> OperationDescription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for OperationDescription
impl Debug for OperationDescription
§impl<'de> Deserialize<'de> for OperationDescription
impl<'de> Deserialize<'de> for OperationDescription
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OperationDescription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OperationDescription, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for OperationDescription
impl Hash for OperationDescription
§impl PartialEq for OperationDescription
impl PartialEq for OperationDescription
§impl Serialize for OperationDescription
impl Serialize for OperationDescription
§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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for OperationDescription
Auto Trait Implementations§
impl Freeze for OperationDescription
impl RefUnwindSafe for OperationDescription
impl Send for OperationDescription
impl Sync for OperationDescription
impl Unpin for OperationDescription
impl UnwindSafe for OperationDescription
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> 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)
🔬This is a nightly-only experimental API. (
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>
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