Skip to content

Conversation

mattdangerw
Copy link
Member

@mattdangerw mattdangerw commented Mar 22, 2023

@mattdangerw mattdangerw requested a review from fchollet March 22, 2023 05:44
@mattdangerw mattdangerw force-pushed the task-summaries branch 2 times, most recently from 881cfdc to 4515ea0 Compare March 22, 2023 20:23
@mattdangerw mattdangerw marked this pull request as ready for review March 22, 2023 20:23
@mattdangerw mattdangerw requested a review from jbischof March 22, 2023 20:24
@mattdangerw
Copy link
Member Author

Talk with @fchollet, think we should go for something like this (almost any fix will be a positive delta).

Added some tests and marking this ready for review!

Copy link
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

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

LGTM

)


def print_msg(message, line_break=True):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should export these 2 to internal so our other packages can use them?

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 think we would probably still need to copy for now, as we wouldn't want the dep on tf 2.13 anytime soon.

But could be worth thinking about this yeah. Is custom summaries a need for CV or any other keras ecosystem project?

Make sure model summaries are reportable by the model as soon as they
are created, and include a section for preprocessing on the task, if a
task has preprocessing.
Copy link
Contributor

@jbischof jbischof left a comment

Choose a reason for hiding this comment

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

Love it, thank you!

I would love to see a model.summary() call for BertClassifier in our Getting Started guide soon to show off the work.

@mattdangerw mattdangerw merged commit eca6797 into keras-team:master Mar 23, 2023
kanpuriyanawab pushed a commit to kanpuriyanawab/keras-nlp that referenced this pull request Mar 26, 2023
Make sure model summaries are reportable by the model as soon as they
are created, and include a section for preprocessing on the task, if a
task has preprocessing.
kanpuriyanawab pushed a commit to kanpuriyanawab/keras-nlp that referenced this pull request Mar 26, 2023
Make sure model summaries are reportable by the model as soon as they
are created, and include a section for preprocessing on the task, if a
task has preprocessing.
chenmoneygithub pushed a commit to chenmoneygithub/keras-nlp that referenced this pull request Mar 28, 2023
Make sure model summaries are reportable by the model as soon as they
are created, and include a section for preprocessing on the task, if a
task has preprocessing.
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