pub struct RotaryPositionEncoding2DRecord<B: Backend> {
pub cos_table: <Tensor<B, 2> as Module<B>>::Record,
pub sin_table: <Tensor<B, 2> as Module<B>>::Record,
pub embed_dim: <usize as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§cos_table: <Tensor<B, 2> as Module<B>>::RecordThe module record associative type.
sin_table: <Tensor<B, 2> as Module<B>>::RecordThe module record associative type.
embed_dim: <usize as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for RotaryPositionEncoding2DRecord<B>
impl<B: Backend> Record<B> for RotaryPositionEncoding2DRecord<B>
Source§type Item<S: PrecisionSettings> = RotaryPositionEncoding2DRecordItem<B, S>
type Item<S: PrecisionSettings> = RotaryPositionEncoding2DRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> Freeze for RotaryPositionEncoding2DRecord<B>
impl<B> RefUnwindSafe for RotaryPositionEncoding2DRecord<B>
impl<B> Send for RotaryPositionEncoding2DRecord<B>
impl<B> Sync for RotaryPositionEncoding2DRecord<B>
impl<B> Unpin for RotaryPositionEncoding2DRecord<B>
impl<B> UnsafeUnpin for RotaryPositionEncoding2DRecord<B>
impl<B> UnwindSafe for RotaryPositionEncoding2DRecord<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