pub trait Reader {
// Required methods
fn names(&self) -> Vec<&str>;
fn contains(&self, name: &str) -> bool;
fn shape(&self, name: &str) -> Result<Vec<usize>, SafeTensorError>;
fn tensor(&self, name: &str) -> Result<ReaderTensor<'_>, SafeTensorError>;
}Expand description
Interface accessing a safetensors data blob.