Compute Library
 21.02
DotGraphPrinter Class Referencefinal

Graph printer interface. More...

#include <DotGraphPrinter.h>

Collaboration diagram for DotGraphPrinter:
[legend]

Public Member Functions

void print (const Graph &g, std::ostream &os) override
 Print graph. More...
 
- Public Member Functions inherited from IGraphPrinter
virtual ~IGraphPrinter ()=default
 Virtual Destructor. More...
 

Detailed Description

Graph printer interface.

Definition at line 70 of file DotGraphPrinter.h.

Member Function Documentation

◆ print()

void print ( const Graph g,
std::ostream &  os 
)
overridevirtual

Print graph.

Parameters
[in]gGraph to print
[out]osOutput stream

Implements IGraphPrinter.

Definition at line 124 of file DotGraphPrinter.cpp.

References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_UNUSED, TensorDescriptor::data_type, Tensor::desc(), Graph::edges(), TensorDescriptor::layout, name, Graph::name(), Graph::nodes(), TensorDescriptor::shape, tf_frozen_model_extractor::t, and arm_compute::support::cpp11::to_string().

125 {
126  // Print header
127  print_header(g, os);
128 
129  // Print nodes
130  print_nodes(g, os);
131 
132  // Print edges
133  print_edges(g, os);
134 
135  // Print footer
136  print_footer(g, os);
137 }

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