#[repr(u8)]pub enum TensorShapeDynamism {
TensorShapeDynamism_STATIC = 0,
TensorShapeDynamism_DYNAMIC_BOUND = 1,
TensorShapeDynamism_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§
TensorShapeDynamism_STATIC = 0
Cannot change shape.
TensorShapeDynamism_DYNAMIC_BOUND = 1
Shape cannot exceed initial capacity.
TensorShapeDynamism_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 duplicate 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 ExternType for TensorShapeDynamism
Available on crate feature std only.
impl ExternType for TensorShapeDynamism
Available on crate feature
std only.Source§impl Hash for TensorShapeDynamism
impl Hash for TensorShapeDynamism
Source§impl PartialEq for TensorShapeDynamism
impl PartialEq for TensorShapeDynamism
impl Copy 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