pub struct GraphReservation {
pub n_nodes: i32,
}Expand description
The size of a graph reserved by
LlamaContext::reserve_graph.
Fields§
§n_nodes: i32Compute nodes in the graph.
ggml exposes no public leaf count, so this is the whole measurement — enough to compare one batch shape against another, which is what it is for.
Trait Implementations§
Source§impl Clone for GraphReservation
impl Clone for GraphReservation
impl Copy for GraphReservation
Source§impl Debug for GraphReservation
impl Debug for GraphReservation
impl Eq for GraphReservation
Source§impl PartialEq for GraphReservation
impl PartialEq for GraphReservation
impl StructuralPartialEq for GraphReservation
Auto Trait Implementations§
impl Freeze for GraphReservation
impl RefUnwindSafe for GraphReservation
impl Send for GraphReservation
impl Sync for GraphReservation
impl Unpin for GraphReservation
impl UnsafeUnpin for GraphReservation
impl UnwindSafe for GraphReservation
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