pub enum ProviderCheckpointStateLayout {
ContiguousBoundaryValue,
TokenMajorPrefix,
}Expand description
Exact logical byte ABI promised by a provider for one state port. Both forms require a contiguous semantic tensor and one physical component; the selected storage profile may translate its logical range into pages.
Variants§
ContiguousBoundaryValue
The component contains the complete tensor value at the boundary.
TokenMajorPrefix
Ordered token-major values with no per-token padding. The declared stride is the entire resolved semantic tensor’s byte size. Only [0,N) is valid, regardless of how much backing capacity was reserved.
Trait Implementations§
Source§impl Clone for ProviderCheckpointStateLayout
impl Clone for ProviderCheckpointStateLayout
Source§fn clone(&self) -> ProviderCheckpointStateLayout
fn clone(&self) -> ProviderCheckpointStateLayout
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 moreimpl Copy for ProviderCheckpointStateLayout
Source§impl<'de> Deserialize<'de> for ProviderCheckpointStateLayout
impl<'de> Deserialize<'de> for ProviderCheckpointStateLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProviderCheckpointStateLayout
impl StructuralPartialEq for ProviderCheckpointStateLayout
Auto Trait Implementations§
impl Freeze for ProviderCheckpointStateLayout
impl RefUnwindSafe for ProviderCheckpointStateLayout
impl Send for ProviderCheckpointStateLayout
impl Sync for ProviderCheckpointStateLayout
impl Unpin for ProviderCheckpointStateLayout
impl UnsafeUnpin for ProviderCheckpointStateLayout
impl UnwindSafe for ProviderCheckpointStateLayout
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