Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model summary print_fn got an unexpected keyword argument 'line_break' #19371

Closed
Raychani1 opened this issue Mar 25, 2024 · 3 comments · Fixed by #19419
Closed

Model summary print_fn got an unexpected keyword argument 'line_break' #19371

Raychani1 opened this issue Mar 25, 2024 · 3 comments · Fixed by #19419
Assignees
Labels

Comments

@Raychani1
Copy link

Raychani1 commented Mar 25, 2024

Hello I'm currently working on a model where I'm logging all sorts of creation and setup processes, but ran into a minor issue when trying to use a custom print function which allows me to redirect the model summary to the respective loggers and log files.

Tried multiple approaches including:
Option 1
Option 2
Option 3

The problem is caused by line 363 in summary_utils.py. Tried to remove it locally in the Python environment, and the whole logging just worked.

Is that parameter crucial there? Or have anybody else experience similar issues, when redirecting the model summary output?

Thanks in advance.

Currently using version 3.1.1.

@sachinprasadhs
Copy link
Collaborator

Hi, To understand more on the issue, could you please provide sample reproducible code and make sure you're using latest Keras version 3.1.

@Raychani1
Copy link
Author

Hello I've just put together a small use-case in this gist with aforementioned options. Added also the output of pip freeze to check library versions.

Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants