pub struct TensorManipulationKernel {
pub operation: String,
pub input_size: usize,
pub output_size: usize,
pub complexity_factor: f64,
}Expand description
GPU Tensor manipulation async kernel
Fields§
§operation: String§input_size: usize§output_size: usize§complexity_factor: f64Implementations§
Trait Implementations§
Source§impl AsyncKernel for TensorManipulationKernel
impl AsyncKernel for TensorManipulationKernel
Source§fn execute(&self) -> Pin<Box<dyn Future<Output = Result<()>> + Send>>
fn execute(&self) -> Pin<Box<dyn Future<Output = Result<()>> + Send>>
Execute the kernel asynchronously
Source§fn estimated_time_us(&self) -> u64
fn estimated_time_us(&self) -> u64
Get estimated execution time in microseconds
Source§fn can_batch_with(&self, other: &dyn AsyncKernel) -> bool
fn can_batch_with(&self, other: &dyn AsyncKernel) -> bool
Check if this kernel can be batched with another
Source§fn supports_concurrency(&self) -> bool
fn supports_concurrency(&self) -> bool
Check if kernel supports concurrent execution
Source§fn memory_requirements(&self) -> usize
fn memory_requirements(&self) -> usize
Get memory requirements in bytes
Auto Trait Implementations§
impl Freeze for TensorManipulationKernel
impl RefUnwindSafe for TensorManipulationKernel
impl Send for TensorManipulationKernel
impl Sync for TensorManipulationKernel
impl Unpin for TensorManipulationKernel
impl UnsafeUnpin for TensorManipulationKernel
impl UnwindSafe for TensorManipulationKernel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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