pub struct StreamedModel {
pub embed: Option<SpatialProgram>,
pub embed_identity: Option<Identity>,
pub kinds: Vec<LayerKind>,
pub head: SpatialProgram,
pub head_identity: Identity,
pub layers: Vec<LayerBinding>,
pub residency: ResidencyPlan,
}Fields§
§embed: Option<SpatialProgram>A decode bundle’s embedding lookup (x = row tok of Emb); None for the authored forward, whose first
hidden state is an input.
embed_identity: Option<Identity>The cut of the model’s one program the embedding program was lowered from.
kinds: Vec<LayerKind>§head: SpatialProgram§head_identity: IdentityThe cut of the model’s one program the head was lowered from.
layers: Vec<LayerBinding>§residency: ResidencyPlanWhere the deployment keeps every program’s carried state — the SRAM or HBM/DDR — and what it reserves for the
largest program’s own footprint (super::residency::plan_deployment); every state tensor carries its tier.
Trait Implementations§
Source§impl Clone for StreamedModel
impl Clone for StreamedModel
Source§fn clone(&self) -> StreamedModel
fn clone(&self) -> StreamedModel
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 moreAuto Trait Implementations§
impl Freeze for StreamedModel
impl RefUnwindSafe for StreamedModel
impl Send for StreamedModel
impl Sync for StreamedModel
impl Unpin for StreamedModel
impl UnsafeUnpin for StreamedModel
impl UnwindSafe for StreamedModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn 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>
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)
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)
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.