pub struct TensorInputsExpand<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> {
pub query: <Tensor<Vector<Q::T, Q::N>> as RudaType>::ExpandType,
pub key: <Tensor<Vector<K::T, K::N>> as RudaType>::ExpandType,
pub value: <Tensor<Vector<V::T, V::N>> as RudaType>::ExpandType,
pub mask: <ComptimeOption<Tensor<Vector<M::T, M::N>>> as RudaType>::ExpandType,
}Fields§
§query: <Tensor<Vector<Q::T, Q::N>> as RudaType>::ExpandType§key: <Tensor<Vector<K::T, K::N>> as RudaType>::ExpandType§value: <Tensor<Vector<V::T, V::N>> as RudaType>::ExpandType§mask: <ComptimeOption<Tensor<Vector<M::T, M::N>>> as RudaType>::ExpandTypeImplementations§
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> TensorInputsExpand<Q, K, V, M>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> TensorInputsExpand<Q, K, V, M>
pub fn __expand_clone_method(&self, scope: &mut Scope) -> Self
Trait Implementations§
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> Clone for TensorInputsExpand<Q, K, V, M>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> Clone for TensorInputsExpand<Q, K, V, M>
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> IntoMut for TensorInputsExpand<Q, K, V, M>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> IntoMut for TensorInputsExpand<Q, K, V, M>
Source§fn into_mut(self, scope: &mut Scope) -> Self
fn into_mut(self, scope: &mut Scope) -> Self
Convert the variable into a potentially new mutable variable in
scope, copying if needed.fn expand_reference_value(self, scope: &mut Scope) -> Self
fn expand_inactive_value(self, _scope: &mut Scope) -> Self
fn expand_reference(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_absent_reference(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_reborrow(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_return_reference(self, scope: &mut Scope, writable: bool) -> Self
fn expand_deref(self, _scope: &mut Scope) -> Self
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> RudaDebug for TensorInputsExpand<Q, K, V, M>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine> RudaDebug for TensorInputsExpand<Q, K, V, M>
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Auto Trait Implementations§
impl<Q, K, V, M> !Send for TensorInputsExpand<Q, K, V, M>
impl<Q, K, V, M> !Sync for TensorInputsExpand<Q, K, V, M>
impl<Q, K, V, M> Freeze for TensorInputsExpand<Q, K, V, M>where
<Tensor<Vector<<Q as FloatLine>::T, <Q as FloatLine>::N>> as RudaType>::ExpandType: Freeze,
<Tensor<Vector<<K as FloatLine>::T, <K as FloatLine>::N>> as RudaType>::ExpandType: Freeze,
<Tensor<Vector<<V as FloatLine>::T, <V as FloatLine>::N>> as RudaType>::ExpandType: Freeze,
<ComptimeOption<Tensor<Vector<<M as NumericLine>::T, <M as NumericLine>::N>>> as RudaType>::ExpandType: Freeze,
impl<Q, K, V, M> RefUnwindSafe for TensorInputsExpand<Q, K, V, M>where
<Tensor<Vector<<Q as FloatLine>::T, <Q as FloatLine>::N>> as RudaType>::ExpandType: RefUnwindSafe,
<Tensor<Vector<<K as FloatLine>::T, <K as FloatLine>::N>> as RudaType>::ExpandType: RefUnwindSafe,
<Tensor<Vector<<V as FloatLine>::T, <V as FloatLine>::N>> as RudaType>::ExpandType: RefUnwindSafe,
<ComptimeOption<Tensor<Vector<<M as NumericLine>::T, <M as NumericLine>::N>>> as RudaType>::ExpandType: RefUnwindSafe,
impl<Q, K, V, M> Unpin for TensorInputsExpand<Q, K, V, M>where
<Tensor<Vector<<Q as FloatLine>::T, <Q as FloatLine>::N>> as RudaType>::ExpandType: Unpin,
<Tensor<Vector<<K as FloatLine>::T, <K as FloatLine>::N>> as RudaType>::ExpandType: Unpin,
<Tensor<Vector<<V as FloatLine>::T, <V as FloatLine>::N>> as RudaType>::ExpandType: Unpin,
<ComptimeOption<Tensor<Vector<<M as NumericLine>::T, <M as NumericLine>::N>>> as RudaType>::ExpandType: Unpin,
impl<Q, K, V, M> UnsafeUnpin for TensorInputsExpand<Q, K, V, M>where
<Tensor<Vector<<Q as FloatLine>::T, <Q as FloatLine>::N>> as RudaType>::ExpandType: UnsafeUnpin,
<Tensor<Vector<<K as FloatLine>::T, <K as FloatLine>::N>> as RudaType>::ExpandType: UnsafeUnpin,
<Tensor<Vector<<V as FloatLine>::T, <V as FloatLine>::N>> as RudaType>::ExpandType: UnsafeUnpin,
<ComptimeOption<Tensor<Vector<<M as NumericLine>::T, <M as NumericLine>::N>>> as RudaType>::ExpandType: UnsafeUnpin,
impl<Q, K, V, M> UnwindSafe for TensorInputsExpand<Q, K, V, M>where
<Tensor<Vector<<Q as FloatLine>::T, <Q as FloatLine>::N>> as RudaType>::ExpandType: UnwindSafe,
<Tensor<Vector<<K as FloatLine>::T, <K as FloatLine>::N>> as RudaType>::ExpandType: UnwindSafe,
<Tensor<Vector<<V as FloatLine>::T, <V as FloatLine>::N>> as RudaType>::ExpandType: UnwindSafe,
<ComptimeOption<Tensor<Vector<<M as NumericLine>::T, <M as NumericLine>::N>>> as RudaType>::ExpandType: 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