pub enum TensorStoragePolicy {
Verbatim,
Q8PerOutputChannel,
}Expand description
The storage recipe for one source tensor in a portable .fttsq artifact.
The conversion plan must state this policy for every tensor in its source manifest. That makes protected high-precision tensors an explicit, auditable choice rather than an accidental fallback, and it prevents a new checkpoint tensor from being silently omitted.
Variants§
Verbatim
Preserve the source BF16 or F32 bytes exactly.
Q8PerOutputChannel
Quantize a rank-two-or-greater weight matrix with canonical per-output-channel Q8 scales.
Trait Implementations§
Source§impl Clone for TensorStoragePolicy
impl Clone for TensorStoragePolicy
Source§fn clone(&self) -> TensorStoragePolicy
fn clone(&self) -> TensorStoragePolicy
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 TensorStoragePolicy
Source§impl Debug for TensorStoragePolicy
impl Debug for TensorStoragePolicy
impl Eq for TensorStoragePolicy
Source§impl PartialEq for TensorStoragePolicy
impl PartialEq for TensorStoragePolicy
impl StructuralPartialEq for TensorStoragePolicy
Auto Trait Implementations§
impl Freeze for TensorStoragePolicy
impl RefUnwindSafe for TensorStoragePolicy
impl Send for TensorStoragePolicy
impl Sync for TensorStoragePolicy
impl Unpin for TensorStoragePolicy
impl UnsafeUnpin for TensorStoragePolicy
impl UnwindSafe for TensorStoragePolicy
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