pub enum OpType {
Einsum {
spec: String,
},
ElemUnary {
op: String,
},
ElemBinary {
op: String,
},
Reduce {
op: String,
axes: Vec<usize>,
},
}Expand description
Operation types supported in the tensor graph
Variants§
Einsum
Einstein summation (tensor contraction)
ElemUnary
Element-wise unary operation
ElemBinary
Element-wise binary operation
Reduce
Reduction operation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpType
impl<'de> Deserialize<'de> for OpType
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
impl StructuralPartialEq for OpType
Auto Trait Implementations§
impl Freeze for OpType
impl RefUnwindSafe for OpType
impl Send for OpType
impl Sync for OpType
impl Unpin for OpType
impl UnwindSafe for OpType
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