ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
Functions | Variables
summarize Namespace Reference

Functions

def read_net (filename)
 
def format_param (param)
 
def printed_len (s)
 
def print_table (table, max_width)
 
def summarize_net (net)
 
def main ()
 

Variables

list COLORS
 
string DISCONNECTED_COLOR = '41'
 

Detailed Description

Net summarization tool.

This tool summarizes the structure of a net in a concise but comprehensive
tabular listing, taking a prototxt file as input.

Use this tool to check at a glance that the computation you've specified is the
computation you expect.

Function Documentation

◆ format_param()

def summarize.format_param (   param)

◆ main()

def summarize.main ( )

◆ print_table()

def summarize.print_table (   table,
  max_width 
)
Print a simple nicely-aligned table.

table must be a list of (equal-length) lists. Columns are space-separated,
and as narrow as possible, but no wider than max_width. Text may overflow
columns; note that unlike string.format, this will not affect subsequent
columns, if possible.

◆ printed_len()

def summarize.printed_len (   s)

◆ read_net()

def summarize.read_net (   filename)

◆ summarize_net()

def summarize.summarize_net (   net)

Variable Documentation

◆ COLORS

list summarize.COLORS
Initial value:
1= ['92', '93', '94', '95', '97', '96', '42', '43;30', '100',
2 '444', '103;30', '107;30']

◆ DISCONNECTED_COLOR

string summarize.DISCONNECTED_COLOR = '41'