Skip to main content

GdnJob

Struct GdnJob 

Source
pub struct GdnJob;
Expand description

The word a hybrid engine’s core gives its recurrence unit with a job of a lazily flushed memory’s token-rows (Streaming::recurrence), its fields from the lowest bit: the job’s rows (16 bits); its block’s memory’s and log’s offsets in a row’s region and a log entry’s bytes, its key and value heads, a log entry’s values’, decay exponents’ and gates’ first elements, the read-out’s scale’s bits (32 bits each); the store slots of the rows’ query, output, key heads, value heads, decay exponents and gates (5 bits each) and the values’ first element in theirs (20 bits); the tokens a flush takes (8 bits), and whether the state stores binary16. The fast side lays each row’s region and store beats from its copies of the rows and slots tables (logos_gdn_rows).

Implementations§

Source§

impl GdnJob

Source

pub const ROWS: usize = 0

Source

pub const MEMORY: usize = 16

Source

pub const LOG: usize = 48

Source

pub const ENTRY: usize = 80

Source

pub const KEY_HEADS: usize = 112

Source

pub const VALUE_HEADS: usize = 144

Source

pub const VALUES: usize = 176

Source

pub const DECAYS: usize = 208

Source

pub const GATES: usize = 240

Source

pub const SCALE: usize = 272

Source

pub const QUERY: usize = 304

Source

pub const OUTPUT: usize = 309

Source

pub const KEY: usize = 314

Source

pub const VALUE: usize = 319

Source

pub const LOG_DECAY: usize = 324

Source

pub const GATE: usize = 329

Source

pub const VALUE_AT: usize = 334

Source

pub const TOKENS: usize = 354

Source

pub const F16: usize = 362

Source

pub const BITS: usize = 363

Source

pub const NORM: usize = 363

A build whose recurrence makes its gated norms (Streaming::delta_norm): whether the job carries one, its gate’s slot, the norm’s epsilon and its weight’s first line, past the fields every build takes.

Source

pub const Z: usize = 364

Source

pub const EPS: usize = 369

Source

pub const W_LINE: usize = 401

Source

pub const NORMED_BITS: usize = 433

Source

pub fn bits(s: &Streaming) -> usize

The bits of the job word of the build s.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,