pub enum AccessClass {
HotRecurrentMicrodecoder,
HotRecurrentTalker,
HotCodecDecoder,
ColdTextEmbedding,
EnrollmentSpeakerEncoder,
EnrollmentCodecEncoder,
Metadata,
}Expand description
How the runtime touches a section. Drives the page-in policy.
Unknown values are refused rather than defaulted: a section whose access class we do not understand is one we cannot page correctly, and guessing “probably hot” for a 622 MB cold section is exactly the mistake that costs the microdecoder its cache residency.
Variants§
HotRecurrentMicrodecoder
The ~110 MB microdecoder hot pack, reread 15× per frame.
HotRecurrentTalker
The ~440 MB talker body, read once per frame across 28 layers.
HotCodecDecoder
The codec decoder, read once per frame.
ColdTextEmbedding
The ~622 MB text embedding: lazy, row-granular, never paged in wholesale.
EnrollmentSpeakerEncoder
Speaker encoder, needed only during enrollment.
EnrollmentCodecEncoder
Codec encoder, needed only during enrollment.
Metadata
Config, manifests, and the license notice.
Implementations§
Source§impl AccessClass
impl AccessClass
Sourcepub const fn is_hot(self) -> bool
pub const fn is_hot(self) -> bool
Whether this section should be resident during steady-state decode.
Consumed by the page-in policy: hot classes are advised resident, the cold embedding is explicitly not, and enrollment sections are only touched by the voice compiler.
Sourcepub const fn is_row_granular(self) -> bool
pub const fn is_row_granular(self) -> bool
Whether the runtime must access this section row-granularly rather than as a unit.
Source§impl AccessClass
impl AccessClass
Sourcepub const fn page_policy(self) -> PagePolicy
pub const fn page_policy(self) -> PagePolicy
The page-in policy for this access class. Total, and the only place the mapping is defined.
Trait Implementations§
Source§impl Clone for AccessClass
impl Clone for AccessClass
Source§fn clone(&self) -> AccessClass
fn clone(&self) -> AccessClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more