TfModelSummary

data class TfModelSummary(type: String, name: String?, layersSummaries: List<LayerSummary>, trainableParamsCount: Long, frozenParamsCount: Long) : ModelSummary

The common information about model.

Constructors

TfModelSummary
Link copied to clipboard
fun TfModelSummary(type: String, name: String?, layersSummaries: List<LayerSummary>, trainableParamsCount: Long, frozenParamsCount: Long)

Functions

customFormat
Link copied to clipboard
fun customFormat(layerNameColumnName: String = "Layer (type) ", outputShapeColumnName: String = "Output Shape ", paramsCountColumnName: String = "Param # ", connectedToColumnName: String = "Connected to ", columnSeparator: String = " ", lineSeparatorSymbol: Char = '_', thickLineSeparatorSymbol: Char = '=', withConnectionsColumn: Boolean = layersSummaries.any { it.inboundLayers.size > 1 }): List<String>

Formats model summary

format
Link copied to clipboard
open override fun format(columnSeparator: String, lineSeparatorSymbol: Char, thickLineSeparatorSymbol: Char): List<String>

Properties

frozenParamsCount
Link copied to clipboard
val frozenParamsCount: Long

The number of frozen parameters.

layersSummaries
Link copied to clipboard
val layersSummaries: List<LayerSummary>

The summary of the all layers included in the model.

name
Link copied to clipboard
val name: String?

The model name.

totalParamsCount
Link copied to clipboard
val totalParamsCount: Long

The total number of model's parameters.

trainableParamsCount
Link copied to clipboard
val trainableParamsCount: Long

The number of trainable parameters.

type
Link copied to clipboard
val type: String

The model type.