pub struct AlibiInput<'a> {
    pub attention_scores: &'a Array,
    pub offset: i32,
    pub mask: Option<&'a Array>,
}Expand description
Input for the Alibi module.
Fields§
§attention_scores: &'a ArrayThe attention scores.
offset: i32Offset
mask: Option<&'a Array>Mask
Implementations§
Source§impl<'a> AlibiInput<'a>
 
impl<'a> AlibiInput<'a>
Source§impl AlibiInput<'_>
 
impl AlibiInput<'_>
Sourcepub const DEFAULT_OFFSET: i32 = 0i32
 
pub const DEFAULT_OFFSET: i32 = 0i32
Default value for offset field.
Trait Implementations§
Source§impl<'a> Buildable for AlibiInput<'a>
 
impl<'a> Buildable for AlibiInput<'a>
Source§type Builder = AlibiInputBuilder<'a>
 
type Builder = AlibiInputBuilder<'a>
The builder type for this buildable type
Source§impl<'a> Builder<AlibiInput<'a>> for AlibiInputBuilder<'a>
 
impl<'a> Builder<AlibiInput<'a>> for AlibiInputBuilder<'a>
Source§type Error = Infallible
 
type Error = Infallible
Error with building
Source§impl<'a> Clone for AlibiInput<'a>
 
impl<'a> Clone for AlibiInput<'a>
Source§fn clone(&self) -> AlibiInput<'a>
 
fn clone(&self) -> AlibiInput<'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 AlibiInput<'a>
 
impl<'a> Debug for AlibiInput<'a>
Source§impl<'a> From<&'a Array> for AlibiInput<'a>
 
impl<'a> From<&'a Array> for AlibiInput<'a>
Source§impl<'a> From<(&'a Array,)> for AlibiInput<'a>
 
impl<'a> From<(&'a Array,)> for AlibiInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for AlibiInput<'a>
impl<'a> RefUnwindSafe for AlibiInput<'a>
impl<'a> !Send for AlibiInput<'a>
impl<'a> !Sync for AlibiInput<'a>
impl<'a> Unpin for AlibiInput<'a>
impl<'a> UnwindSafe for AlibiInput<'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.