pub struct MultiHeadAttentionInput<'a> {
pub queries: &'a Array,
pub keys: &'a Array,
pub values: &'a Array,
pub mask: Option<&'a Array>,
}Expand description
Input to the MultiHeadAttention module
Fields§
§queries: &'a ArrayQueries
keys: &'a ArrayKeys
values: &'a ArrayValues
mask: Option<&'a Array>Mask
Implementations§
Trait Implementations§
Source§impl<'a> Buildable for MultiHeadAttentionInput<'a>
impl<'a> Buildable for MultiHeadAttentionInput<'a>
Source§type Builder = MultiHeadAttentionInputBuilder<'a>
type Builder = MultiHeadAttentionInputBuilder<'a>
The builder type for this buildable type
Source§impl<'a> Builder<MultiHeadAttentionInput<'a>> for MultiHeadAttentionInputBuilder<'a>
impl<'a> Builder<MultiHeadAttentionInput<'a>> for MultiHeadAttentionInputBuilder<'a>
Source§type Error = Infallible
type Error = Infallible
Error with building
Source§impl<'a> Clone for MultiHeadAttentionInput<'a>
impl<'a> Clone for MultiHeadAttentionInput<'a>
Source§fn clone(&self) -> MultiHeadAttentionInput<'a>
fn clone(&self) -> MultiHeadAttentionInput<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for MultiHeadAttentionInput<'a>
impl<'a> Debug for MultiHeadAttentionInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for MultiHeadAttentionInput<'a>
impl<'a> RefUnwindSafe for MultiHeadAttentionInput<'a>
impl<'a> !Send for MultiHeadAttentionInput<'a>
impl<'a> !Sync for MultiHeadAttentionInput<'a>
impl<'a> Unpin for MultiHeadAttentionInput<'a>
impl<'a> UnwindSafe for MultiHeadAttentionInput<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Convert into an
Option.