Struct RotaryEncodingRecord
pub struct RotaryEncodingRecord<B>where
B: Backend,{
pub freq_complex: <Tensor<B, 3> as Module<B>>::Record,
pub theta: <Tensor<B, 1> as Module<B>>::Record,
pub start_offset: <usize as Module<B>>::Record,
}
Expand description
The record type for the module.
Fields§
§freq_complex: <Tensor<B, 3> as Module<B>>::Record
The module record associative type.
theta: <Tensor<B, 1> as Module<B>>::Record
The module record associative type.
start_offset: <usize as Module<B>>::Record
The module record associative type.
Trait Implementations§
§
impl<B> Record<B> for RotaryEncodingRecord<B>
where
B: Backend,
impl<B> Record<B> for RotaryEncodingRecord<B>
where
B: Backend,
§
type Item<S: PrecisionSettings>
= RotaryEncodingRecordItem<B,
S>
type Item<S: PrecisionSettings> = RotaryEncodingRecordItem<B, S>
Type of the item that can be serialized and deserialized.
§
fn into_item<S>(self) -> <RotaryEncodingRecord<B>
as Record<B>>::Item<S>where
S: PrecisionSettings,
fn into_item<S>(self) -> <RotaryEncodingRecord<B>
as Record<B>>::Item<S>where
S: PrecisionSettings,
Convert the current record into the corresponding item that
follows the given settings.
§
fn from_item<S>(
item: <RotaryEncodingRecord<B>
as Record<B>>::Item<S>,
device: &<B as Backend>::Device,
) -> RotaryEncodingRecord<B>
where
S: PrecisionSettings,
fn from_item<S>(
item: <RotaryEncodingRecord<B>
as Record<B>>::Item<S>,
device: &<B as Backend>::Device,
) -> RotaryEncodingRecord<B>
where
S: PrecisionSettings,
Convert the given item into a record.
Auto Trait Implementations§
impl<B> Freeze for RotaryEncodingRecord<B>
impl<B> RefUnwindSafe for RotaryEncodingRecord<B>
impl<B> Send for RotaryEncodingRecord<B>
impl<B> Sync for RotaryEncodingRecord<B>
impl<B> Unpin for RotaryEncodingRecord<B>
impl<B> UnwindSafe for RotaryEncodingRecord<B>
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
§
impl<T> Instrument for T
impl<T> Instrument for T
§
fn instrument(self, span: Span) ->
Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§
fn in_current_span(self) ->
Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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
more
Source§
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
more