pub enum TensorLocation {
Host,
Resident {
site: Symbol,
allocation: Symbol,
},
}Expand description
The observable placement of tensor storage.
Host storage can be read directly. Resident storage belongs to a loadable execution site and names an opaque allocation supplied by that site.
Variants§
Host
Storage is directly observable by the host runtime.
Resident
Storage resides at a loadable execution site.
Trait Implementations§
Source§impl Clone for TensorLocation
impl Clone for TensorLocation
Source§fn clone(&self) -> TensorLocation
fn clone(&self) -> TensorLocation
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 TensorLocation
impl Debug for TensorLocation
impl Eq for TensorLocation
Source§impl PartialEq for TensorLocation
impl PartialEq for TensorLocation
impl StructuralPartialEq for TensorLocation
Auto Trait Implementations§
impl Freeze for TensorLocation
impl RefUnwindSafe for TensorLocation
impl Send for TensorLocation
impl Sync for TensorLocation
impl Unpin for TensorLocation
impl UnsafeUnpin for TensorLocation
impl UnwindSafe for TensorLocation
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