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),
Custom(CustomOpDescription),
}Available on crate feature
repr only.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.
Custom(CustomOpDescription)
A custom operation.
Implementations§
Source§impl OperationDescription
impl OperationDescription
Sourcepub fn nodes(&self) -> Vec<&TensorDescription>
pub fn nodes(&self) -> Vec<&TensorDescription>
Cleanup the remaining tensor handles that have not been used.
Trait Implementations§
Source§impl Clone for OperationDescription
impl Clone for OperationDescription
Source§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 moreSource§impl Debug for OperationDescription
impl Debug for OperationDescription
Source§impl<'de> Deserialize<'de> for OperationDescription
impl<'de> Deserialize<'de> for OperationDescription
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for OperationDescription
impl Hash for OperationDescription
Source§impl PartialEq for OperationDescription
impl PartialEq for OperationDescription
Source§impl Serialize for OperationDescription
impl Serialize for OperationDescription
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§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