ONE - On-device Neural Engine
|
Namespaces | |
namespace | ops |
Data Structures | |
class | AffineQuantization |
struct | AvgPool2DOpAttributes |
struct | Conv2DOpAttributes |
struct | Deconv2DOpAttributes |
struct | DotEdge |
class | DotGraph |
struct | DotNode |
class | DotNodeBuilder |
class | ExternalRegion |
class | Graph |
class | GraphPatternMatcher |
class | Index |
class | IVisitor |
Interface for visitors Use in MIR component if you want to enforce to implement visits for all operations. More... | |
struct | MaxPool2DOpAttributes |
class | Operation |
struct | PadOpAttributes |
struct | Region |
class | Shape |
class | ShapeIter |
class | ShapeRange |
class | Tensor |
class | TensorType |
class | TensorVariant |
class | Visitor |
Base visitor with empty fallback function. More... | |
Enumerations | |
enum class | DataFormat { NCHW , NHWC } |
enum class | DataType { UNKNOWN , FLOAT32 , FLOAT64 , INT32 , INT64 , UINT8 } |
Functions | |
constexpr std::size_t | wrap_index (std::int32_t index, std::size_t limit) noexcept |
int | getDataBatchDimIndex (DataFormat data_format) |
int | getDataChannelDimIndex (DataFormat data_format) |
int | getDataSpatialDimIndex (DataFormat data_format, int dim) |
std::string | toString (DataFormat data_format) |
std::size_t | getDataTypeSize (DataType type) |
std::vector< Operation * > | getSortedNodes (Graph *graph) |
Returns nodes of the graph sorted topologically. | |
std::ostream & | operator<< (std::ostream &s, const Index &idx) |
void | dumpGraph (const Graph *graph, std::ostream &stream) |
const std::string & | getTypeName (Operation::Type type) |
Shape | broadcastShapes (const Shape &lhs_shape, const Shape &rhs_shape) |
std::string | toString (const Shape &shape) |
template<int32_t... Ints> | |
Shape | transposeShape (const Shape &shape) |
template<unsigned int... Ints> | |
TensorVariant | transposeTensor (const TensorVariant &tensor) |
std::ostream & | operator<< (std::ostream &stream, const DotGraph &graph) |
Variables | |
constexpr std::size_t | MAX_DIMENSION_COUNT = 8 |
maximum number of dimensions what an Index, Shape or Tensor can have | |
|
strong |
|
strong |
Definition at line 43 of file Shape.cpp.
References mir::Shape::dim(), and mir::Shape::rank().
Referenced by TEST().
void mir::dumpGraph | ( | const Graph * | graph, |
std::ostream & | stream | ||
) |
Definition at line 25 of file IrDotDumper.cpp.
References mir::DotGraph::addEdge(), mir::DotGraph::addNode(), and mir::DotNodeBuilder::getDotNode().
Referenced by main(), and nnc::DumperPass::run().
|
inline |
Definition at line 32 of file DataFormat.h.
|
inline |
Definition at line 45 of file DataFormat.h.
|
inline |
Definition at line 59 of file DataFormat.h.
|
inline |
Definition at line 36 of file DataType.h.
Referenced by mir::TensorVariant::TensorVariant().
Returns nodes of the graph sorted topologically.
Definition at line 42 of file Graph.cpp.
References mir::Operation::getNumInputs(), and mir::Operation::getOutputs().
Referenced by mir::Graph::accept(), and nnc::DeadCodeElimination::run().
const std::string & mir::getTypeName | ( | Operation::Type | type | ) |
Definition at line 71 of file Operation.cpp.
Referenced by mir::DotNodeBuilder::DotNodeBuilder().
std::ostream & mir::operator<< | ( | std::ostream & | s, |
const Index & | idx | ||
) |
Definition at line 36 of file Index.cpp.
References mir::Index::at(), and mir::Index::rank().
std::ostream & mir::operator<< | ( | std::ostream & | stream, |
const DotGraph & | graph | ||
) |
Definition at line 26 of file DotGraph.cpp.
std::string mir::toString | ( | const Shape & | shape | ) |
Definition at line 68 of file Shape.cpp.
References mir::Shape::dim(), and mir::Shape::rank().
|
inline |
Definition at line 74 of file DataFormat.h.
Referenced by mir::DotNodeBuilder::DotNodeBuilder(), mir::DotNodeBuilder::visit(), mir::DotNodeBuilder::visit(), mir::DotNodeBuilder::visit(), mir::DotNodeBuilder::visit(), mir::DotNodeBuilder::visit(), mir::DotNodeBuilder::visit(), mir::DotNodeBuilder::visit(), mir::DotNodeBuilder::visit(), mir::DotNodeBuilder::visit(), and mir::DotNodeBuilder::visit().
Definition at line 29 of file TensorUtil.h.
References mir::Shape::dim(), and mir::Shape::rank().
TensorVariant mir::transposeTensor | ( | const TensorVariant & | tensor | ) |
Definition at line 35 of file TensorUtil.h.
References mir::TensorVariant::at(), mir::Shape::dim(), and mir::TensorType::setQuantization().
|
inlineconstexprnoexcept |
Definition at line 30 of file Common.h.
Referenced by mir::Index::at(), mir::Index::at(), mir::Shape::dim(), and mir::Shape::dim().