pub struct TensorMode {
pub shape: u64,
pub element_stride: Option<u64>,
pub block_size: Option<u64>,
pub block_stride: Option<u64>,
}Fields§
§shape: u64§element_stride: Option<u64>§block_size: Option<u64>§block_stride: Option<u64>Implementations§
Source§impl TensorMode
impl TensorMode
pub const fn contiguous(shape: u64) -> Self
Trait Implementations§
Source§impl Clone for TensorMode
impl Clone for TensorMode
Source§fn clone(&self) -> TensorMode
fn clone(&self) -> TensorMode
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 TensorMode
Auto Trait Implementations§
impl Freeze for TensorMode
impl RefUnwindSafe for TensorMode
impl Send for TensorMode
impl Sync for TensorMode
impl Unpin for TensorMode
impl UnsafeUnpin for TensorMode
impl UnwindSafe for TensorMode
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