pub struct TensorReadOptions {
pub validate_alignment: bool,
pub compute_checksum: bool,
pub decompress_quantized: bool,
pub max_tensor_size: usize,
pub buffer_size: usize,
}Expand description
Options for tensor reading
Fields§
§validate_alignment: boolWhether to validate the descriptor offset against GGUF’s minimum 8-byte alignment
compute_checksum: boolWhether to compute the crate’s non-cryptographic payload checksum.
GGUF carries no reference checksum to verify, so this records a value for caller comparison; it does not establish integrity or authenticity.
decompress_quantized: boolWhether to decompress quantized data
max_tensor_size: usizeMaximum tensor size to read (0 = no limit)
buffer_size: usizePreferred buffer size for reading; temporary chunks are capped at 1 MiB.
Trait Implementations§
Source§impl Clone for TensorReadOptions
impl Clone for TensorReadOptions
Source§impl Debug for TensorReadOptions
impl Debug for TensorReadOptions
Auto Trait Implementations§
impl Freeze for TensorReadOptions
impl RefUnwindSafe for TensorReadOptions
impl Send for TensorReadOptions
impl Sync for TensorReadOptions
impl Unpin for TensorReadOptions
impl UnsafeUnpin for TensorReadOptions
impl UnwindSafe for TensorReadOptions
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