-
Notifications
You must be signed in to change notification settings - Fork 24
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
TF 2.5 compatibility #48
Conversation
… into vincent/tf25-cont
0f90bcb
to
ec3acb5
Compare
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.
LGTM!
.github/workflows/quality-check.yaml
Outdated
tensorflow_probability: "~=0.12.0" | ||
name: Python-${{ matrix.python-version }} tensorflow${{ matrix.tensorflow }} tensorflow_probability${{ matrix.tensorflow_probability }} | ||
python-version: [3.6, 3.7, 3.8] | ||
tensorflow: ["~=2.5"] |
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.
Should this be 2.5.0
? I think this statement will install the latest minor version rather than the latest bugfix of 2.5.
|
||
return decorator | ||
|
||
|
||
class TrackableLayer(tf.keras.layers.Layer): |
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 like the idea of deferring actually removing this class until a later PR.
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.
Since you last reviewed the code, I added a deprecation message and a test (test_trackable_layer_is_removed_version_1_0_0
) to make sure we remove TrackableLayer
once we're at v1.0.0. Are you happy with those changes?
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.
Yes, that looks good.
r""" | ||
A :class:`tf.Layer` that tracks variables in :class:`tf.Module`\ s. | ||
|
||
.. todo:: Once TensorFlow 2.5 is released, this class will be removed. |
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.
Should we keep the comment about removing the class entirely?
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.
Added deprecation message and a test test_trackable_layer_is_removed_version_1_0_0
.
No description provided.