-
Notifications
You must be signed in to change notification settings - Fork 202
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
Callbacks phase 1 #299
base: master
Are you sure you want to change the base?
Callbacks phase 1 #299
Conversation
Sync with master tensorflow on upstream
Merge main branch to local branch
Update after losses merge
Fix Javadoc errors (tensorflow#152)
pull type def
Metrics Phase 1 (tensorflow#180)
Pull latest tensorflow master
Merge with latest
Resync with origin/master
Sync with tensorflow/java master
Sync with Metrics Phase 2
Sync with master
Sync with Regularizers
tensorflow-framework/src/main/java/org/tensorflow/framework/callbacks/CSVLogger.java
Show resolved
Hide resolved
tensorflow-framework/src/main/java/org/tensorflow/framework/callbacks/CSVLogger.java
Outdated
Show resolved
Hide resolved
tensorflow-framework/src/main/java/org/tensorflow/framework/callbacks/CSVLogger.java
Outdated
Show resolved
Hide resolved
|
||
/** Creates a Callback */ | ||
protected Callback() { | ||
this(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to use Collections.emptyMap()
here rather than null? Or is it mutated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
.
tensorflow-framework/src/main/java/org/tensorflow/framework/callbacks/CSVLogger.java
Show resolved
Hide resolved
tensorflow-framework/src/main/java/org/tensorflow/framework/callbacks/util/ProgressBar.java
Show resolved
Hide resolved
tensorflow-framework/src/main/java/org/tensorflow/framework/callbacks/util/ProgressBar.java
Outdated
Show resolved
Hide resolved
tensorflow-framework/src/test/java/org/tensorflow/framework/callbacks/CSVLoggerTest.java
Outdated
Show resolved
Hide resolved
tensorflow-framework/src/test/java/org/tensorflow/framework/callbacks/CSVLoggerTest.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
@Test | ||
void onEpochEnd() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix
Mostly small stuff and some tidying in the docs. Otherwise it looks pretty good. |
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.