format

fun ModelSummary.format(layerNameColumnName: String = "Layer (type) ", outputShapeColumnName: String = "Output Shape ", paramsCountColumnName: String = "Param # ", connectedToColumnName: String = "Connected to ", columnSeparator: String = " ", lineSeparator: Char = '_', thickLineSeparator: Char = '=', withConnectionsColumn: Boolean = layersSummaries.any { it.inboundLayers.size > 1 }): List<String>

Formats model summary

Return

description of model summary as list of strings, which are suitable for printing or logging

Parameters

layerNameColumnName

title of the column with layer names

outputShapeColumnName

title of the column with layer output shapes

paramsCountColumnName

title of the column with layer parameter counts

connectedToColumnName

title of the column with layers that are inputs for a layer

columnSeparator

text chunk that will be used as column separator for the layer description table

lineSeparator

character that will be used to produce a string to separate rows of the layer description table

thickLineSeparator

character that will be used to produce a string to separate general model description, header and body of the table with layers description, and description footer

withConnectionsColumn

flag that turns on/off displaying of the column with names of inbound layers