ONE - On-device Neural Engine
Loading...
Searching...
No Matches
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 31 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 37 of file Linear.cc.

39{
40 for (const auto &ind : order)
41 {
42 // TODO Could logging system can handle this? (Inserting prefix for each line)
43 std::istringstream iss{dumper::text::formatOperation(lowered_graph.graph(), ind)};
44 std::string line;
45 while (std::getline(iss, line))
46 VERBOSE(Linearize) << line << std::endl;
47 }
48}
#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 31 of file Linear.cc.

32{
33 return lowered_graph.graph().topolSortOperations();
34}

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


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