ONE - On-device Neural Engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
onert::compiler::Linear Class Reference

#include <Linear.h>

Static Public Member Functions

static std::vector< ir::OperationIndexlinearize (const compiler::ILoweredGraph &lowered_graph)
 
static void dump (const compiler::ILoweredGraph &lowered_graph, const std::vector< ir::OperationIndex > &order)
 

Detailed Description

Definition at line 29 of file Linear.h.

Member Function Documentation

◆ dump()

void onert::compiler::Linear::dump ( const compiler::ILoweredGraph lowered_graph,
const std::vector< ir::OperationIndex > &  order 
)
static

Definition at line 35 of file Linear.cc.

37{
38 for (const auto &ind : order)
39 {
40 // TODO Could logging system can handle this? (Inserting prefix for each line)
41 std::istringstream iss{dumper::text::formatOperation(lowered_graph.graph(), ind)};
42 std::string line;
43 while (std::getline(iss, line))
44 VERBOSE(Linearize) << line << std::endl;
45 }
46}
#define VERBOSE(name, lv)
Definition Log.h:71
std::string formatOperation(const ir::IOperation &op, ir::OperationIndex ind)

References onert::dumper::text::formatOperation(), onert::compiler::ILoweredGraph::graph(), and VERBOSE.

◆ linearize()

std::vector< ir::OperationIndex > onert::compiler::Linear::linearize ( const compiler::ILoweredGraph lowered_graph)
static

Definition at line 29 of file Linear.cc.

30{
31 return lowered_graph.graph().topolSortOperations();
32}

References onert::compiler::ILoweredGraph::graph(), and onert::ir::Graph::topolSortOperations().


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