summarize_variables

tfsnippet.summarize_variables(variables, title='Variables Summary', other_variables_title='Other Variables', groups=None, sort_by_names=False)

Get a formatted summary about the variables.

Parameters:
  • variables (list[tf.Variable] or dict[str, tf.Variable]) – List or dict of variables to be summarized.
  • title (str) – Title of this summary.
  • other_variables_title (str) – Title of the “Other Variables”.
  • groups (None or list[str]) – List of separated variable groups, each summarized in a table. (default None)
  • sort_by_names (bool) – Whether or not to sort the variables within each group by their names? (if not True, will display the variables according to their natural order)
Returns:

Formatted summary about the variables.

Return type:

str