MLIR: mlir::ShapedTypeComponents Class Reference (original) (raw)

ShapedTypeComponents that represents the components of a ShapedType. More...

#include "[mlir/Interfaces/InferTypeOpInterface.h](InferTypeOpInterface%5F8h%5Fsource.html)"

Public Member Functions
ShapedTypeComponents ()
Default construction is an unranked shape. More...
ShapedTypeComponents (Type elementType)
ShapedTypeComponents (ShapedType shapedType)
ShapedTypeComponents (ShapeAdaptor adaptor)
template<typename Arg , typename = std::enable_if_t< std::is_constructible<ShapeStorageT, Arg>::value>>
ShapedTypeComponents (Arg &&arg, Type elementType=nullptr, Attribute attr=nullptr)
ShapedTypeComponents (ArrayRef< int64_t > vec, Type elementType=nullptr, Attribute attr=nullptr)
ArrayRef< int64_t > getDims () const
Return the dimensions of the shape. More...
bool hasRank () const
Return whether the shape has a rank. More...
Type getElementType () const
Return the element type component. More...
Attribute getAttribute () const
Return the raw attribute component. More...

ShapedTypeComponents that represents the components of a ShapedType.

The components consist of

Definition at line 107 of file InferTypeOpInterface.h.

mlir::ShapedTypeComponents::ShapedTypeComponents ( ) inline

ShapedTypeComponents() [2/6]

mlir::ShapedTypeComponents::ShapedTypeComponents ( Type elementType) inline

ShapedTypeComponents() [3/6]

mlir::ShapedTypeComponents::ShapedTypeComponents ( ShapedType shapedType) inline

ShapedTypeComponents() [4/6]

mlir::ShapedTypeComponents::ShapedTypeComponents ( ShapeAdaptor adaptor) inline

ShapedTypeComponents() [5/6]

template<typename Arg , typename = std::enable_if_t< std::is_constructible<ShapeStorageT, Arg>::value>>

mlir::ShapedTypeComponents::ShapedTypeComponents ( Arg && arg, Type elementType = nullptr, Attribute attr = nullptr ) inline

ShapedTypeComponents() [6/6]

mlir::ShapedTypeComponents::ShapedTypeComponents ( ArrayRef< int64_t > vec, Type elementType = nullptr, Attribute attr = nullptr ) inline

getAttribute()

Attribute mlir::ShapedTypeComponents::getAttribute ( ) const inline

getDims()

ArrayRef<int64_t> mlir::ShapedTypeComponents::getDims ( ) const inline

getElementType()

Type mlir::ShapedTypeComponents::getElementType ( ) const inline

hasRank()

bool mlir::ShapedTypeComponents::hasRank ( ) const inline

ShapeAdaptor


The documentation for this class was generated from the following file: