pub struct BufferAllocation {
pub tensor_id: TensorId,
pub offset: usize,
pub size_bytes: usize,
}Expand description
A buffer allocation for a single tensor.
Fields§
§tensor_id: TensorIdWhich tensor this allocation is for.
offset: usizeByte offset within the unified buffer.
size_bytes: usizeSize of this tensor in bytes.
Trait Implementations§
Source§impl Clone for BufferAllocation
impl Clone for BufferAllocation
Source§fn clone(&self) -> BufferAllocation
fn clone(&self) -> BufferAllocation
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 BufferAllocation
impl Debug for BufferAllocation
impl Eq for BufferAllocation
Source§impl PartialEq for BufferAllocation
impl PartialEq for BufferAllocation
impl StructuralPartialEq for BufferAllocation
Auto Trait Implementations§
impl Freeze for BufferAllocation
impl RefUnwindSafe for BufferAllocation
impl Send for BufferAllocation
impl Sync for BufferAllocation
impl Unpin for BufferAllocation
impl UnsafeUnpin for BufferAllocation
impl UnwindSafe for BufferAllocation
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