Skip to content
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

Merged
merged 19 commits into from
Aug 27, 2021
Merged

TF 2.5 compatibility #48

merged 19 commits into from
Aug 27, 2021

Conversation

vdutor
Copy link
Member

@vdutor vdutor commented Aug 26, 2021

No description provided.

Copy link
Collaborator

@johnamcleod johnamcleod left a comment

Choose a reason for hiding this comment

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

LGTM!

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"]
Copy link
Collaborator

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):
Copy link
Collaborator

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.

Copy link
Member Author

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?

Copy link
Collaborator

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.
Copy link
Collaborator

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?

Copy link
Member Author

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.

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