pub struct MemoryPlan {
pub allocations: Vec<BufferAllocation>,
pub peak_bytes: usize,
}Expand description
The result of memory planning: buffer assignments and peak usage.
Fields§
§allocations: Vec<BufferAllocation>Per-tensor buffer allocations.
peak_bytes: usizePeak memory usage in bytes (the minimum buffer size needed).
Trait Implementations§
Source§impl Clone for MemoryPlan
impl Clone for MemoryPlan
Source§fn clone(&self) -> MemoryPlan
fn clone(&self) -> MemoryPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryPlan
impl Debug for MemoryPlan
Source§impl Default for MemoryPlan
impl Default for MemoryPlan
Source§fn default() -> MemoryPlan
fn default() -> MemoryPlan
Returns the “default value” for a type. Read more
Source§impl Display for MemoryPlan
impl Display for MemoryPlan
impl Eq for MemoryPlan
Source§impl PartialEq for MemoryPlan
impl PartialEq for MemoryPlan
impl StructuralPartialEq for MemoryPlan
Auto Trait Implementations§
impl Freeze for MemoryPlan
impl RefUnwindSafe for MemoryPlan
impl Send for MemoryPlan
impl Sync for MemoryPlan
impl Unpin for MemoryPlan
impl UnsafeUnpin for MemoryPlan
impl UnwindSafe for MemoryPlan
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