pub struct TensorInputsLaunch<'a, Q: Float, K: Float, V: Float, M: Numeric, R: Runtime> {
pub query: <Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>,
pub key: <Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>,
pub value: <Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>,
pub mask: <CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>,
/* private fields */
}Fields§
§query: <Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>§key: <Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>§value: <Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>§mask: <CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>Implementations§
Source§impl<'a, Q: Float, K: Float, V: Float, M: Numeric, R: Runtime> TensorInputsLaunch<'a, Q, K, V, M, R>
impl<'a, Q: Float, K: Float, V: Float, M: Numeric, R: Runtime> TensorInputsLaunch<'a, Q, K, V, M, R>
Sourcepub fn new(
query: <Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>,
key: <Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>,
value: <Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>,
mask: <CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>,
) -> Self
pub fn new( query: <Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>, key: <Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>, value: <Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>, mask: <CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>, ) -> Self
New kernel
Trait Implementations§
Source§impl<'a, Q: Float, K: Float, V: Float, M: Numeric, R: Runtime> ArgSettings<R> for TensorInputsLaunch<'a, Q, K, V, M, R>
impl<'a, Q: Float, K: Float, V: Float, M: Numeric, R: Runtime> ArgSettings<R> for TensorInputsLaunch<'a, Q, K, V, M, R>
Source§fn register(&self, launcher: &mut KernelLauncher<R>)
fn register(&self, launcher: &mut KernelLauncher<R>)
Register the information of an argument to the KernelLauncher.
Auto Trait Implementations§
impl<'a, Q, K, V, M, R> Freeze for TensorInputsLaunch<'a, Q, K, V, M, R>where
PhantomData<R>: Freeze,
<Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>: Freeze,
<Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>: Freeze,
<Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>: Freeze,
<CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>: Freeze,
impl<'a, Q, K, V, M, R> RefUnwindSafe for TensorInputsLaunch<'a, Q, K, V, M, R>where
PhantomData<R>: RefUnwindSafe,
<Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>: RefUnwindSafe,
<Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>: RefUnwindSafe,
<Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>: RefUnwindSafe,
<CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>: RefUnwindSafe,
impl<'a, Q, K, V, M, R> Send for TensorInputsLaunch<'a, Q, K, V, M, R>where
PhantomData<R>: Send,
<Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>: Send,
<Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>: Send,
<Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>: Send,
<CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>: Send,
impl<'a, Q, K, V, M, R> Sync for TensorInputsLaunch<'a, Q, K, V, M, R>where
PhantomData<R>: Sync,
<Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>: Sync,
<Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>: Sync,
<Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>: Sync,
<CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>: Sync,
impl<'a, Q, K, V, M, R> Unpin for TensorInputsLaunch<'a, Q, K, V, M, R>where
PhantomData<R>: Unpin,
<Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>: Unpin,
<Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>: Unpin,
<Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>: Unpin,
<CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>: Unpin,
impl<'a, Q, K, V, M, R> UnsafeUnpin for TensorInputsLaunch<'a, Q, K, V, M, R>where
PhantomData<R>: UnsafeUnpin,
<Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>: UnsafeUnpin,
<Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>: UnsafeUnpin,
<Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>: UnsafeUnpin,
<CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>: UnsafeUnpin,
impl<'a, Q, K, V, M, R> UnwindSafe for TensorInputsLaunch<'a, Q, K, V, M, R>where
PhantomData<R>: UnwindSafe,
<Tensor<Line<Q>> as LaunchArg>::RuntimeArg<'a, R>: UnwindSafe,
<Tensor<Line<K>> as LaunchArg>::RuntimeArg<'a, R>: UnwindSafe,
<Tensor<Line<V>> as LaunchArg>::RuntimeArg<'a, R>: UnwindSafe,
<CubeOption<Tensor<Line<M>>> as LaunchArg>::RuntimeArg<'a, R>: UnwindSafe,
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