ModelSummary
data class ModelSummary(type: String, name: String?, layersSummaries: List<LayerSummary>, trainableParamsCount: Long, frozenParamsCount: Long)
Content copied to clipboard
The common information about model.
Constructors
ModelSummary
Link copied to clipboard
fun ModelSummary(type: String, name: String?, layersSummaries: List<LayerSummary>, trainableParamsCount: Long, frozenParamsCount: Long)
Content copied to clipboard
Properties
frozenParamsCount
Link copied to clipboard
layersSummaries
Link copied to clipboard
totalParamsCount
Link copied to clipboard
trainableParamsCount
Link copied to clipboard
Extensions
format
Link copied to clipboard
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>
Content copied to clipboard
Formats model summary
log
Link copied to clipboard
Formats and log model summary to logger By defaults prints to ModelSummaryLogger
print
Link copied to clipboard
Formats and prints model summary to output stream By defaults prints to console