Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensorflow_addons/optimizers/cyclical_learning_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __call__(self, step):
cycle = tf.floor(1 + step_as_dtype / (2 * step_size))
x = tf.abs(step_as_dtype / step_size - 2 * cycle + 1)

mode_step = cycle if self.scale_mode == "cycle" else step
mode_step = cycle if self.scale_mode == "cycle" else step_as_dtype

return initial_learning_rate + (
maximal_learning_rate - initial_learning_rate
Expand Down