Skip to content

Conversation

@rushabh-v
Copy link
Contributor

@rushabh-v rushabh-v commented Aug 29, 2020

Fixes: #2113

Type of change

Checklist:

  • I've properly formatted my code according to the guidelines
    • By running Black + Flake8
    • By running pre-commit hooks
  • This PR addresses an already submitted issue for TensorFlow Addons
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • This PR contains modifications to C++ custom-ops

If you're adding a bugfix or new feature please describe the tests that you ran to verify your changes: By running python -m pytest tensorflow_addons/optimizers/tests/moving_average_test.py

Copy link
Member

@WindQAQ WindQAQ left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution 😃

self._num_updates,
(
'type of argument "num_updates" must be '
+ f"int; got {self._num_updates.dtype} instead"
Copy link
Member

Choose a reason for hiding this comment

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

We are compatible with Python3.5, so fstring should be avoided.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Updated!

@WindQAQ WindQAQ self-requested a review August 30, 2020 04:17
Copy link
Member

@WindQAQ WindQAQ left a comment

Choose a reason for hiding this comment

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

Thanks!

@WindQAQ WindQAQ merged commit dc3aa06 into tensorflow:master Aug 30, 2020
jrruijli pushed a commit to jrruijli/addons that referenced this pull request Dec 23, 2020
* fix typing of num_updates in moving_average

* use .format instead of fstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Why MovingAverage num_steps takes 'string'?

3 participants