pub enum ComputeOp {
Add,
Gemm,
MaxPool(OperatorMaxPool),
Custom(OperatorCustom),
}Variants§
Implementations§
Source§impl ComputeOp
impl ComputeOp
pub fn trace_name(&self) -> &str
pub fn compute_delay_ticks( &self, compute_capabilities: &Rc<ComputeCapabilities>, input_views: &[Option<TensorView>], output_views: &[Option<TensorView>], ) -> Result<usize, SimError>
pub fn compute_flops( &self, input_views: &[Option<TensorView>], output_views: &[Option<TensorView>], ) -> Result<usize, SimError>
pub fn compute_machine_ops( &self, input_views: &[Option<TensorView>], output_views: &[Option<TensorView>], ) -> Result<MachineOpCounts, SimError>
pub fn create_partitions( &self, input_views: &[Option<TensorView>], output_views: &[Option<TensorView>], num_partitions: usize, ) -> Result<Vec<TensorPartition>, SimError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ComputeOp
impl<'de> Deserialize<'de> for ComputeOp
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
Auto Trait Implementations§
impl Freeze for ComputeOp
impl RefUnwindSafe for ComputeOp
impl Send for ComputeOp
impl Sync for ComputeOp
impl Unpin for ComputeOp
impl UnsafeUnpin for ComputeOp
impl UnwindSafe for ComputeOp
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