Skip to content

Conversation

SamanehSaadat
Copy link
Member

No description provided.

model = SimpleTask(preprocessor)
summary = []
model.summary(print_fn=lambda x, line_break: summary.append(x))
model.summary(print_fn=lambda x, line_break=False: summary.append(x))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to skip line_break entirely, no?

model.summary(print_fn=lambda x: summary.append(x))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think we should remove line_break but when I do that, it goes to this branch and gives the following error:

TypeError: TestTask.test_summary_with_preprocessor.<locals>.<lambda>() got an unexpected keyword argument 'line_break'

I should figure out why this branch runs when I remove line_break.

@mattdangerw mattdangerw marked this pull request as ready for review April 9, 2024 03:09
@mattdangerw mattdangerw merged commit e4726ab into keras-team:master Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants