pub enum TensorAccess {
ReadOnly,
ReadWriteF32,
}Expand description
Native access granted to one selected tensor.
Variants§
ReadOnly
Copy and optionally retain the tensor without native mutation.
ReadWriteF32
Run the handler over finite f32 values and commit once on success.
Trait Implementations§
Source§impl Clone for TensorAccess
impl Clone for TensorAccess
Source§fn clone(&self) -> TensorAccess
fn clone(&self) -> TensorAccess
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 moreimpl Copy for TensorAccess
Source§impl Debug for TensorAccess
impl Debug for TensorAccess
impl Eq for TensorAccess
Source§impl PartialEq for TensorAccess
impl PartialEq for TensorAccess
impl StructuralPartialEq for TensorAccess
Auto Trait Implementations§
impl Freeze for TensorAccess
impl RefUnwindSafe for TensorAccess
impl Send for TensorAccess
impl Sync for TensorAccess
impl Unpin for TensorAccess
impl UnsafeUnpin for TensorAccess
impl UnwindSafe for TensorAccess
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