pub struct Decoder {
pub stat: Graph,
pub learned: Graph,
pub learned_ad: Graph,
pub mlp: Option<Graph>,
pub wgsl_res: String,
pub wgsl_res_ad: String,
pub wgsl_mlp: Option<String>,
pub key: u64,
pub size: usize,
}Expand description
A verified decoder program, ready for both backends.
Fields§
§stat: GraphStatic residual graph.
learned: GraphLearned residual graph.
learned_ad: GraphAdaptive learned residual graph.
mlp: Option<Graph>Shipped MLP (replaces the stream’s model).
wgsl_res: StringWGSL for the kernel’s RES region (bounds-checked loads).
wgsl_res_ad: StringThe RES region for adaptive streams.
wgsl_mlp: Option<String>WGSL fn mlp_gen() when the MLP is shipped.
key: u64Content hash of the program bytes.
size: usizeProgram size in bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnsafeUnpin for Decoder
impl UnwindSafe for Decoder
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