pub struct TensorInfo {
pub name: String,
pub shape: Vec<usize>,
pub ggml_type: GgmlType,
pub offset: u64,
pub byte_len: usize,
}Expand description
Information about a single tensor in the GGUF file.
Fields§
§name: StringTensor name (e.g. “blk.0.attn_q.weight”).
shape: Vec<usize>Tensor shape, innermost dimension first (as stored in GGUF).
ggml_type: GgmlTypeGGML quantization type.
offset: u64Byte offset relative to the start of the tensor data section.
byte_len: usizeTotal byte length of this tensor’s data.
Trait Implementations§
Source§impl Clone for TensorInfo
impl Clone for TensorInfo
Source§fn clone(&self) -> TensorInfo
fn clone(&self) -> TensorInfo
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 moreAuto Trait Implementations§
impl Freeze for TensorInfo
impl RefUnwindSafe for TensorInfo
impl Send for TensorInfo
impl Sync for TensorInfo
impl Unpin for TensorInfo
impl UnsafeUnpin for TensorInfo
impl UnwindSafe for TensorInfo
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