pub struct OnDevice<T> { /* private fields */ }Expand description
A pytree whose arrays are on the device of the runtime’s platform, made
by device_put or returned by Jit::call_on_device.
There are no operations on it other than passing it to jitted functions
and copying it back with OnDevice::to_native.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OnDevice<T>where
T: Freeze,
impl<T> RefUnwindSafe for OnDevice<T>where
T: RefUnwindSafe,
impl<T> Send for OnDevice<T>where
T: Send,
impl<T> Sync for OnDevice<T>where
T: Sync,
impl<T> Unpin for OnDevice<T>where
T: Unpin,
impl<T> UnsafeUnpin for OnDevice<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for OnDevice<T>where
T: UnwindSafe,
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