#[repr(u8)]pub enum TensorShapeDynamism {
STATIC = 0,
DYNAMIC_BOUND = 1,
DYNAMIC_UNBOUND = 2,
}Expand description
The resizing capabilities of a Tensor.
The rank of an ExecuTorch Tensors can never change, but shape sometimes can.
Variants§
STATIC = 0
Cannot change shape.
DYNAMIC_BOUND = 1
Shape cannot exceed initial capacity.
DYNAMIC_UNBOUND = 2
No restriction on shape and capacity.
Trait Implementations§
Source§impl Clone for TensorShapeDynamism
impl Clone for TensorShapeDynamism
Source§fn clone(&self) -> TensorShapeDynamism
fn clone(&self) -> TensorShapeDynamism
Returns a copy of the value. Read more
1.0.0 · 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 TensorShapeDynamism
impl Debug for TensorShapeDynamism
Source§impl Hash for TensorShapeDynamism
impl Hash for TensorShapeDynamism
Source§impl PartialEq for TensorShapeDynamism
impl PartialEq for TensorShapeDynamism
impl Eq for TensorShapeDynamism
impl StructuralPartialEq for TensorShapeDynamism
Auto Trait Implementations§
impl Freeze for TensorShapeDynamism
impl RefUnwindSafe for TensorShapeDynamism
impl Send for TensorShapeDynamism
impl Sync for TensorShapeDynamism
impl Unpin for TensorShapeDynamism
impl UnwindSafe for TensorShapeDynamism
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