8000 Truncation during non-interactive model summary printing · Issue #21107 · keras-team/keras · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Truncation during non-interactive model summary printing #21107
Closed
@ryan-gustafson

Description

@ryan-gustafson

When printing a model summary non-interactively, the provided line_width is not honored, resulting in right-side truncation in the file context. The rich table's default of 80 seems to be used instead.

Changing:

highlight=False, force_terminal=False, color_system=None

Locally, if I set width to line_width, it produces the expected file contents:

   highlight=False, force_terminal=False, color_system=None, width=line_length

Example of non-interactive model printing with line_length > 80:

    with open(summary_path, 'w') as f:
        model.summary(expand_nested=True, show_trainable=True, line_length=120,
                      print_fn=lambda x: f.write(x + '\n'))

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0