pub struct DlpackTable { /* private fields */ }Expand description
A table-like wrapper that can export individual columns as DLPack tensors without copies.
The underlying CudaBuffer is reference-counted so multiple DLPack exports can share it.
Implementations§
Source§impl DlpackTable
impl DlpackTable
pub fn column(&self, col_idx: usize) -> Result<DlpackManagedTensor>
Auto Trait Implementations§
impl Freeze for DlpackTable
impl RefUnwindSafe for DlpackTable
impl Send for DlpackTable
impl Sync for DlpackTable
impl Unpin for DlpackTable
impl UnsafeUnpin for DlpackTable
impl UnwindSafe for DlpackTable
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