pub struct TensorMeta {
pub shape: Vec<usize>,
pub dtype: String,
pub total_bytes: usize,
pub chunk_count: usize,
pub chunk_size: usize,
}Expand description
Metadata for a chunked tensor stored in the database.
This is stored as JSON in the metadata key for each tensor.
Fields§
§shape: Vec<usize>Shape of the tensor (dimensions)
dtype: StringData type of tensor elements
total_bytes: usizeTotal size in bytes
chunk_count: usizeNumber of chunks
chunk_size: usizeSize of each chunk in bytes (last chunk may be smaller)
Trait Implementations§
Source§impl Clone for TensorMeta
impl Clone for TensorMeta
Source§fn clone(&self) -> TensorMeta
fn clone(&self) -> TensorMeta
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 moreSource§impl Debug for TensorMeta
impl Debug for TensorMeta
Source§impl<'de> Deserialize<'de> for TensorMeta
impl<'de> Deserialize<'de> for TensorMeta
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
Source§impl PartialEq for TensorMeta
impl PartialEq for TensorMeta
Source§impl Serialize for TensorMeta
impl Serialize for TensorMeta
impl StructuralPartialEq for TensorMeta
Auto Trait Implementations§
impl Freeze for TensorMeta
impl RefUnwindSafe for TensorMeta
impl Send for TensorMeta
impl Sync for TensorMeta
impl Unpin for TensorMeta
impl UnwindSafe for TensorMeta
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