pub enum DomainInstruction {
Neural(NeuralNode),
MatMul {
a_shape: Vec<usize>,
b_shape: Vec<usize>,
transpose_a: bool,
transpose_b: bool,
},
Conv2D {
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
groups: usize,
},
ElementWise(GaiaType, String),
GetThreadId(usize),
GetGroupSize(usize),
Barrier,
}Expand description
Tier 2: Domain-specific instructions (Neural network/Tensor/Parallel computing)
Variants§
Neural(NeuralNode)
Neural network operator node.
MatMul
Matrix multiplication operation.
Fields
Conv2D
2D Convolution operation.
Fields
ElementWise(GaiaType, String)
Element-wise operation on tensors.
GetThreadId(usize)
Get the thread ID in the specified dimension.
GetGroupSize(usize)
Get the group size in the specified dimension.
Barrier
Barrier synchronization for all threads in a group.
Trait Implementations§
Source§impl Clone for DomainInstruction
impl Clone for DomainInstruction
Source§fn clone(&self) -> DomainInstruction
fn clone(&self) -> DomainInstruction
Returns a duplicate 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 DomainInstruction
impl Debug for DomainInstruction
Source§impl<'de> Deserialize<'de> for DomainInstruction
impl<'de> Deserialize<'de> for DomainInstruction
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 PartialEq for DomainInstruction
impl PartialEq for DomainInstruction
Source§impl Serialize for DomainInstruction
impl Serialize for DomainInstruction
impl StructuralPartialEq for DomainInstruction
Auto Trait Implementations§
impl Freeze for DomainInstruction
impl RefUnwindSafe for DomainInstruction
impl Send for DomainInstruction
impl Sync for DomainInstruction
impl Unpin for DomainInstruction
impl UnsafeUnpin for DomainInstruction
impl UnwindSafe for DomainInstruction
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