FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Callbacks phase 1 by JimClarke5 · Pull Request #299 · tensorflow/java · GitHub

Callbacks phase 1 - #299

Open
JimClarke5 wants to merge 22 commits into
tensorflow:masterfrom
JimClarke5:Callbacks_Phase_1
Open

Callbacks phase 1#299
JimClarke5 wants to merge 22 commits into
tensorflow:masterfrom
JimClarke5:Callbacks_Phase_1

Conversation

Copy link
Copy Markdown
Contributor

This is the first Phase of Callbacks and is just a minimal set to start work on Model.

There is a chicken and egg relationship with Callbacks and Model, so this PR just addresses the first part with integration with Model postponed. Only enough Callbacks to get started with Model are provided for now.

Once model is done, then a 2nd phase PR with full integration with Model will be created.


/** Creates a Callback */
protected Callback() {
this(null);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Would it be better to use Collections.emptyMap() here rather than null? Or is it mutated?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

So far none of the subclasses write to it, so we could use emptyMap().
I don't think it is a good idea to leave it null. Also make it final in Callback.

}

@Test
void onEpochEnd() {}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

These tests are empty?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I will fix

Craigacp commented May 6, 2021

Copy link
Copy Markdown
Collaborator

Mostly small stuff and some tidying in the docs. Otherwise it looks pretty good.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL