tensorflow / addons

Useful extra functionality for TensorFlow 2.x maintained by SIG-addons
Apache License 2.0
1.69k stars 613 forks source link

Fixed TypeError in CyclicalLearningRate #2756

Open verenaAI opened 2 years ago

verenaAI commented 2 years ago

Description

Fixed bug which appears at the end of the first training epoch. With TF2.5 or higher, the optimizer returns the step variable as int64 but the scale_fn function needs it to be of type float for Triangular2CyclicalLearningRate and ExponentialCyclicalLearningRate.

Type of change

Checklist:

How Has This Been Tested?

google-cla[bot] commented 2 years ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

bot-of-gabrieldemarmiesse commented 2 years ago

@raphaelmeudec

You are owner of some files modified in this pull request. Would you kindly review the changes whenever you have the time to? Thank you very much.