pub struct Shaped(/* private fields */);
Implementations§
Source§impl Shaped
impl Shaped
pub fn from_type(t: &Type) -> Self
pub fn dim_size(&self, i: isize) -> i64
pub fn dynamic_size() -> i64
pub fn dynamic_stride_or_offset() -> i64
pub fn get(&self) -> &MlirType
pub fn get_element_type(&self) -> Type
pub fn get_kind(&self) -> ShapedKind
pub fn get_mut(&mut self) -> &mut MlirType
pub fn get_matching_suffix(&self, other: &Self) -> Option<ShapeImpl<Vec<i64>>>
pub fn get_width(&self) -> Option<usize>
pub fn has_matching_element_type_width(&self, other: &Self) -> bool
pub fn has_matching_suffix(&self, other: &Self) -> bool
pub fn has_rank(&self) -> bool
pub fn has_dynamic_dims(&self) -> bool
pub fn is_static(&self) -> bool
pub fn is_dynamic_dim(&self, i: isize) -> bool
pub fn is_dynamic_size(i: i64) -> bool
pub fn is_dynamic_stride_or_offset(i: i64) -> bool
pub fn rank(&self) -> Option<i64>
Sourcepub fn num_elements(&self) -> Option<i64>
pub fn num_elements(&self) -> Option<i64>
Can only be computed if the shaped is statically sized with no dynamically sized dimensions.
Sourcepub fn num_dynamic_dims(&self) -> Option<i64>
pub fn num_dynamic_dims(&self) -> Option<i64>
Can only be computed if the shaped is ranked.
Trait Implementations§
Source§impl NewElementType for Shaped
impl NewElementType for Shaped
fn new_element_type(other: &Self, t: &Type) -> Self
Auto Trait Implementations§
impl Freeze for Shaped
impl RefUnwindSafe for Shaped
impl !Send for Shaped
impl !Sync for Shaped
impl Unpin for Shaped
impl UnwindSafe for Shaped
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