sleepless.utils.summary

Functions

summary(model)

Counts the number of parameters in each model layer.

sleepless.utils.summary.summary(model)[source]

Counts the number of parameters in each model layer.

Parameters:

model (Module) – model to summarize

Return type:

tuple[str, int]

Returns:

repr: a multiline string representation of the network

nparam: number of parameters