pub struct BoxedTensorStorage { /* private fields */ }Expand description
Boxed host storage for scalar runtime values.
This is the default storage used by tensor constructors. Its cells are reference counted so tensor clones and repeated observations preserve value identity without copying the cell vector.
Trait Implementations§
Source§impl TensorStorage for BoxedTensorStorage
impl TensorStorage for BoxedTensorStorage
Source§fn location(&self) -> TensorLocation
fn location(&self) -> TensorLocation
The current storage placement.
Source§fn materialize(&self) -> Result<Arc<dyn TensorStorage>>
fn materialize(&self) -> Result<Arc<dyn TensorStorage>>
Returns a host-observable form of this storage. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BoxedTensorStorage
impl !UnwindSafe for BoxedTensorStorage
impl Freeze for BoxedTensorStorage
impl Send for BoxedTensorStorage
impl Sync for BoxedTensorStorage
impl Unpin for BoxedTensorStorage
impl UnsafeUnpin for BoxedTensorStorage
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