dcase_util.tfkeras.model_summary_string
- dcase_util.tfkeras.model_summary_string(keras_model, mode='keras', show_parameters=True, display=False)[source]
Model summary in a formatted string, similar to Keras model summary function.
- Parameters
- keras_modelkeras model
Keras model
- modestr
Summary mode [‘extended’, ‘keras’]. In case ‘keras’, standard Keras summary is returned. Default value keras
- show_parametersbool
Show model parameter count and input / output shapes Default value True
- displaybool
Display summary immediately, otherwise return string Default value False
- Returns
- str
Model summary