Struct Execution

Source
pub struct Execution<'h, K, R: Runtime, Scalars> { /* private fields */ }

Implementations§

Source§

impl<'h, K, R: Runtime> Execution<'h, K, R, ()>

Source

pub fn start( kernel: K, client: ComputeClient<R::Server, R::Channel>, ) -> Execution<'h, K, R, ()>

Source

pub fn inputs( self, inputs: &'h [TensorHandleRef<'h, R>], ) -> Execution<'h, K, R, ()>

Source

pub fn outputs( self, outputs: &'h [TensorHandleRef<'h, R>], ) -> Execution<'h, K, R, ()>

Source§

impl<'h, K, R> Execution<'h, K, R, ()>
where K: Kernel + 'static, R: Runtime,

Source

pub fn with_scalars<E>(self, scalars: &[E]) -> Execution<'h, K, R, (&[E],)>

Source

pub fn execute(self, launch: CubeCountSettings)

Execute a dynamic kernel.

Source§

impl<'h, 'a, K, R, E> Execution<'h, K, R, (&'a [E],)>
where K: Kernel + 'static, R: Runtime, E: CubeElement,

Source

pub fn with_scalars<'b, E2>( self, scalars: &'b [E2], ) -> Execution<'h, K, R, (&'a [E], &'b [E2])>

Source

pub fn execute(self, launch: CubeCountSettings)

Execute a dynamic kernel.

Source§

impl<'h, 'a, 'b, K, R, E1, E2> Execution<'h, K, R, (&'a [E1], &'b [E2])>
where K: Kernel + 'static, R: Runtime, E1: CubeElement, E2: CubeElement,

Source

pub fn with_scalars<'c, E3>( self, scalars: &'c [E3], ) -> Execution<'h, K, R, (&'a [E1], &'b [E2], &'c [E3])>

Source

pub fn execute(self, launch: CubeCountSettings)
where K: Kernel + 'static, R: Runtime,

Execute a dynamic kernel.

Source§

impl<K, R, E1, E2, E3> Execution<'_, K, R, (&[E1], &[E2], &[E3])>
where K: Kernel + 'static, R: Runtime, E1: CubeElement, E2: CubeElement, E3: CubeElement,

Source

pub fn execute(self, launch: CubeCountSettings)

Execute a dynamic kernel.

Auto Trait Implementations§

§

impl<'h, K, R, Scalars> Freeze for Execution<'h, K, R, Scalars>
where Scalars: Freeze, K: Freeze, <R as Runtime>::Channel: Freeze,

§

impl<'h, K, R, Scalars> !RefUnwindSafe for Execution<'h, K, R, Scalars>

§

impl<'h, K, R, Scalars> Send for Execution<'h, K, R, Scalars>
where Scalars: Send, K: Send,

§

impl<'h, K, R, Scalars> Sync for Execution<'h, K, R, Scalars>
where Scalars: Sync, K: Sync,

§

impl<'h, K, R, Scalars> Unpin for Execution<'h, K, R, Scalars>
where Scalars: Unpin, K: Unpin, <R as Runtime>::Channel: Unpin,

§

impl<'h, K, R, Scalars> !UnwindSafe for Execution<'h, K, R, Scalars>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V