pub struct ExpectedArtifactTensor {
pub name: String,
pub shape: Vec<u64>,
pub dtype: StoredDtype,
pub access_class: AccessClass,
}Expand description
One tensor the artifact is required to carry, and where.
Distinct from crate::census::ExpectedTensor on purpose, and the difference is not
incidental: that one audits an upstream checkpoint, so it speaks
crate::safetensors::Dtype (bf16/f32) and has no notion of sections. A .fttsq is a
quantized artifact, so its expectations are keyed on StoredDtype and additionally pin
the AccessClass — a tensor that lands in the wrong section still loads and still produces
correct audio, while quietly destroying the residency the whole optimization program depends on.
That failure is invisible to a dtype-and-shape census, which is exactly why this one exists.
Fields§
§name: StringTensor name, exactly as the directory records it.
shape: Vec<u64>Required logical shape.
dtype: StoredDtypeRequired storage dtype after quantization.
access_class: AccessClassThe access class whose section must hold it.
Trait Implementations§
Source§impl Clone for ExpectedArtifactTensor
impl Clone for ExpectedArtifactTensor
Source§fn clone(&self) -> ExpectedArtifactTensor
fn clone(&self) -> ExpectedArtifactTensor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more