pub struct RankedTensor(/* private fields */);
Implementations§
Source§impl RankedTensor
impl RankedTensor
pub fn new(shape: &dyn Shape, t: &Type) -> Self
pub fn new_encoded(shape: &dyn Shape, t: &Type, encoding: &Attribute) -> Self
pub fn new_checked( shape: &dyn Shape, t: &Type, encoding: &Attribute, loc: &Location, ) -> Self
pub fn from_type(t: &Type) -> Self
pub fn as_shaped(&self) -> Shaped
pub fn get(&self) -> &MlirType
pub fn get_encoding(&self) -> Attribute
pub fn get_matching_suffix(&self, other: &Self) -> Option<Self>
pub fn get_mut(&mut self) -> &mut MlirType
pub fn get_type_id() -> TypeID
pub fn has_matching_ranks(&self, other: &Self) -> bool
pub fn has_matching_static_dimensions(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for RankedTensor
impl Clone for RankedTensor
Source§fn clone(&self) -> RankedTensor
fn clone(&self) -> RankedTensor
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 From<&Type> for RankedTensor
impl From<&Type> for RankedTensor
Source§impl From<MlirType> for RankedTensor
impl From<MlirType> for RankedTensor
Source§impl From<Type> for RankedTensor
impl From<Type> for RankedTensor
Source§impl IType for RankedTensor
impl IType for RankedTensor
Source§impl NewElementType for RankedTensor
impl NewElementType for RankedTensor
fn new_element_type(other: &Self, t: &Type) -> Self
Auto Trait Implementations§
impl Freeze for RankedTensor
impl RefUnwindSafe for RankedTensor
impl !Send for RankedTensor
impl !Sync for RankedTensor
impl Unpin for RankedTensor
impl UnwindSafe for RankedTensor
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