#[non_exhaustive]pub enum SourceTensorEncoding {
Safetensors(StoredDtype),
Gguf {
ggml_type: GgmlType,
endian: Endian,
},
RecipeOutput(StoredDtype),
}Expand description
Physical tensor encoding recorded by an admitted artifact catalog.
This remains distinct from LinearFormat, which describes the format
selected for an executable neural operator.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Safetensors(StoredDtype)
Scalar storage in a SafeTensors payload.
Gguf
One physical GGML block encoding in a GGUF shard.
Fields
RecipeOutput(StoredDtype)
Scalar tensor produced by an admitted architecture recipe before an optional executable-format lowering.
Implementations§
Source§impl SourceTensorEncoding
impl SourceTensorEncoding
Sourcepub fn scalar_dtype(&self) -> Option<StoredDtype>
pub fn scalar_dtype(&self) -> Option<StoredDtype>
Returns the scalar dtype when this encoding is an unpacked tensor.
Trait Implementations§
Source§impl Clone for SourceTensorEncoding
impl Clone for SourceTensorEncoding
Source§fn clone(&self) -> SourceTensorEncoding
fn clone(&self) -> SourceTensorEncoding
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 SourceTensorEncoding
impl Debug for SourceTensorEncoding
impl Eq for SourceTensorEncoding
Source§impl PartialEq for SourceTensorEncoding
impl PartialEq for SourceTensorEncoding
impl StructuralPartialEq for SourceTensorEncoding
Auto Trait Implementations§
impl Freeze for SourceTensorEncoding
impl RefUnwindSafe for SourceTensorEncoding
impl Send for SourceTensorEncoding
impl Sync for SourceTensorEncoding
impl Unpin for SourceTensorEncoding
impl UnsafeUnpin for SourceTensorEncoding
impl UnwindSafe for SourceTensorEncoding
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