#[repr(u8)]pub enum ET_TensorShapeDynamism {
ET_TensorShapeDynamism_STATIC = 0,
ET_TensorShapeDynamism_DYNAMIC_BOUND = 1,
ET_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§
ET_TensorShapeDynamism_STATIC = 0
Cannot change shape.
ET_TensorShapeDynamism_DYNAMIC_BOUND = 1
Shape cannot exceed initial capacity.
ET_TensorShapeDynamism_DYNAMIC_UNBOUND = 2
No restriction on shape and capacity.
Trait Implementations§
Source§impl Clone for ET_TensorShapeDynamism
impl Clone for ET_TensorShapeDynamism
Source§fn clone(&self) -> ET_TensorShapeDynamism
fn clone(&self) -> ET_TensorShapeDynamism
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 ET_TensorShapeDynamism
Source§impl Debug for ET_TensorShapeDynamism
impl Debug for ET_TensorShapeDynamism
impl Eq for ET_TensorShapeDynamism
Source§impl ExternType for ET_TensorShapeDynamism
Available on crate feature std only.
impl ExternType for ET_TensorShapeDynamism
Available on crate feature
std only.Source§impl Hash for ET_TensorShapeDynamism
impl Hash for ET_TensorShapeDynamism
Source§impl PartialEq for ET_TensorShapeDynamism
impl PartialEq for ET_TensorShapeDynamism
impl StructuralPartialEq for ET_TensorShapeDynamism
Auto Trait Implementations§
impl Freeze for ET_TensorShapeDynamism
impl RefUnwindSafe for ET_TensorShapeDynamism
impl Send for ET_TensorShapeDynamism
impl Sync for ET_TensorShapeDynamism
impl Unpin for ET_TensorShapeDynamism
impl UnsafeUnpin for ET_TensorShapeDynamism
impl UnwindSafe for ET_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