#[repr(C)]pub struct MtmdDecoderPos {
pub t: u32,
pub x: u32,
pub y: u32,
pub z: u32,
}Expand description
Per-token position used by M-RoPE decoder attention.
t is the temporal axis, x/y the spatial axes. z is reserved for
future use. Values are relative to a base pos_0 provided when the
position is computed.
Fields§
§t: u32Temporal index.
x: u32Spatial X.
y: u32Spatial Y.
z: u32Reserved.
Trait Implementations§
Source§impl Clone for MtmdDecoderPos
impl Clone for MtmdDecoderPos
Source§fn clone(&self) -> MtmdDecoderPos
fn clone(&self) -> MtmdDecoderPos
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 Debug for MtmdDecoderPos
impl Debug for MtmdDecoderPos
Source§impl Default for MtmdDecoderPos
impl Default for MtmdDecoderPos
Source§fn default() -> MtmdDecoderPos
fn default() -> MtmdDecoderPos
Returns the “default value” for a type. Read more
Source§impl PartialEq for MtmdDecoderPos
impl PartialEq for MtmdDecoderPos
impl Copy for MtmdDecoderPos
impl Eq for MtmdDecoderPos
impl StructuralPartialEq for MtmdDecoderPos
Auto Trait Implementations§
impl Freeze for MtmdDecoderPos
impl RefUnwindSafe for MtmdDecoderPos
impl Send for MtmdDecoderPos
impl Sync for MtmdDecoderPos
impl Unpin for MtmdDecoderPos
impl UnsafeUnpin for MtmdDecoderPos
impl UnwindSafe for MtmdDecoderPos
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