pub struct EngramGeometry {
pub slots: usize,
pub sub_dim: usize,
pub num_tables: usize,
pub conv_taps: usize,
pub conv_dilation: usize,
pub orders: Vec<usize>,
pub sites: Vec<usize>,
}Expand description
Engram (n-gram associative memory) geometry.
Fields§
§slots: usizeRows per hash table.
sub_dim: usizeWidth of one table’s entry.
num_tables: usizeNumber of hash tables — orders.len() * heads.
conv_taps: usizeTaps in the causal convolution over the value stream.
conv_dilation: usizeStride between taps, max(orders).
orders: Vec<usize>n-gram orders, one group of num_tables / orders.len() tables each.
sites: Vec<usize>Layer indices carrying a site.
Implementations§
Source§impl EngramGeometry
impl EngramGeometry
Sourcepub fn fetched_dim(&self) -> usize
pub fn fetched_dim(&self) -> usize
Flattened width of one position’s fetched entries.
Sourcepub fn window(&self) -> usize
pub fn window(&self) -> usize
Tokens of history the value convolution reaches back over.
Mirrors decode._engram_window.
Sourcepub fn site_of_layer(&self, layer: usize) -> Option<usize>
pub fn site_of_layer(&self, layer: usize) -> Option<usize>
Site index for a layer, if it carries one.
Trait Implementations§
Source§impl Clone for EngramGeometry
impl Clone for EngramGeometry
Source§fn clone(&self) -> EngramGeometry
fn clone(&self) -> EngramGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EngramGeometry
impl Debug for EngramGeometry
impl Eq for EngramGeometry
Source§impl PartialEq for EngramGeometry
impl PartialEq for EngramGeometry
impl StructuralPartialEq for EngramGeometry
Auto Trait Implementations§
impl Freeze for EngramGeometry
impl RefUnwindSafe for EngramGeometry
impl Send for EngramGeometry
impl Sync for EngramGeometry
impl Unpin for EngramGeometry
impl UnsafeUnpin for EngramGeometry
impl UnwindSafe for EngramGeometry
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