pub struct PromptCacheStateTensor {
pub owner: StateTensorOwner,
pub role: StateTensorRole,
pub shard: String,
pub array: String,
pub shape: Vec<i32>,
pub dtype: String,
pub logical_bytes: u64,
pub payload_sha256: String,
}Expand description
One independently validated fixed-size state tensor catalog entry.
Fields§
§owner: StateTensorOwnerLayer owner.
role: StateTensorRoleSemantic role declared by the canonical layout.
shard: StringSafe relative backend shard path.
array: StringArray name within the shard.
shape: Vec<i32>Exact stored shape.
dtype: StringExact stored dtype.
logical_bytes: u64Logical bytes in the array.
payload_sha256: StringSHA-256 of the exact payload bytes.
Trait Implementations§
Source§impl Clone for PromptCacheStateTensor
impl Clone for PromptCacheStateTensor
Source§fn clone(&self) -> PromptCacheStateTensor
fn clone(&self) -> PromptCacheStateTensor
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 PromptCacheStateTensor
impl Debug for PromptCacheStateTensor
Source§impl<'de> Deserialize<'de> for PromptCacheStateTensor
impl<'de> Deserialize<'de> for PromptCacheStateTensor
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 PromptCacheStateTensor
Source§impl Hash for PromptCacheStateTensor
impl Hash for PromptCacheStateTensor
Source§impl PartialEq for PromptCacheStateTensor
impl PartialEq for PromptCacheStateTensor
Source§impl Serialize for PromptCacheStateTensor
impl Serialize for PromptCacheStateTensor
impl StructuralPartialEq for PromptCacheStateTensor
Auto Trait Implementations§
impl Freeze for PromptCacheStateTensor
impl RefUnwindSafe for PromptCacheStateTensor
impl Send for PromptCacheStateTensor
impl Sync for PromptCacheStateTensor
impl Unpin for PromptCacheStateTensor
impl UnsafeUnpin for PromptCacheStateTensor
impl UnwindSafe for PromptCacheStateTensor
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