{
ir::OperationIndexMap<std::unique_ptr<Operation>> dot_operations;
const auto &operations = graph.operations();
- operations.iterate([&](const ir::OperationIndex &index, const ir::Operation &op) {
+ operations.iterate([&](const ir::OperationIndex &index, const ir::IOperation &op) {
auto node = std::make_unique<Operation>(index, op);
- for (auto input : op.getInputs())
+ for (auto &&input : op.getInputs())
{
using onert::dumper::dot::Operand;
input_node->addOutEdge(node.get());
}
- for (auto output : op.getOutputs() | ir::Remove::UNDEFINED)
+ for (auto &&output : op.getOutputs() | ir::Remove::UNDEFINED)
{
using onert::dumper::dot::Operand;
auto &output_node = dot_operands.at(output);
return dot_operations;
}
-void update_lower_info(const compiler::LoweredGraph &lowered_graph,
+void update_lower_info(const compiler::ILoweredGraph &lowered_graph,
ir::OperandIndexMap<std::unique_ptr<Operand>> *dot_operands)
{
const auto &operands = lowered_graph.graph().operands();
});
}
-void update_lower_info(const compiler::LoweredGraph &lowered_graph,
+void update_lower_info(const compiler::ILoweredGraph &lowered_graph,
ir::OperationIndexMap<std::unique_ptr<Operation>> *dot_operations)
{
const auto &operations = lowered_graph.graph().operations();
- operations.iterate([&](const ir::OperationIndex &index, const ir::Operation &) {
+ operations.iterate([&](const ir::OperationIndex &index, const ir::IOperation &) {
const auto lower_info = lowered_graph.lower_info().operation.getRawPtr(index);
if (lower_info)
{
dump_to_file(dot_operands, dot_operations, tag);
}
-void DotDumper::dump(const compiler::LoweredGraph &lowered_graph, const std::string &tag)
+// TODO Support derivative tensors
+void DotDumper::dump(const compiler::ILoweredGraph &lowered_graph, const std::string &tag)
{
if (_level == Level::OFF)
{