Skip to content

Commit

Permalink
Removed erroneous scale_fn from CLR subclasses (#1185)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 2ce92ab commit d43ce29
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tensorflow_addons/optimizers/cyclical_learning_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def __init__(
initial_learning_rate: Union[FloatTensorLike, Callable],
maximal_learning_rate: Union[FloatTensorLike, Callable],
step_size: FloatTensorLike,
scale_fn: Callable,
scale_mode: str = "cycle",
name: str = "TriangularCyclicalLearningRate",
):
Expand Down Expand Up @@ -154,7 +153,6 @@ def __init__(
a Python number. The maximum learning rate.
step_size: A scalar `float32` or `float64` `Tensor` or a
Python number. Step size.
scale_fn: A function. Scheduling function applied in cycle
scale_mode: ['cycle', 'iterations']. Mode to apply during cyclic
schedule
name: (Optional) Name for the operation.
Expand All @@ -180,7 +178,6 @@ def __init__(
initial_learning_rate: Union[FloatTensorLike, Callable],
maximal_learning_rate: Union[FloatTensorLike, Callable],
step_size: FloatTensorLike,
scale_fn: Callable,
scale_mode: str = "cycle",
name: str = "Triangular2CyclicalLearningRate",
):
Expand Down Expand Up @@ -217,7 +214,6 @@ def __init__(
a Python number. The maximum learning rate.
step_size: A scalar `float32` or `float64` `Tensor` or a
Python number. Step size.
scale_fn: A function. Scheduling function applied in cycle
scale_mode: ['cycle', 'iterations']. Mode to apply during cyclic
schedule
name: (Optional) Name for the operation.
Expand All @@ -243,7 +239,6 @@ def __init__(
initial_learning_rate: Union[FloatTensorLike, Callable],
maximal_learning_rate: Union[FloatTensorLike, Callable],
step_size: FloatTensorLike,
scale_fn: Callable,
scale_mode: str = "iterations",
gamma: FloatTensorLike = 1.0,
name: str = "ExponentialCyclicalLearningRate",
Expand Down Expand Up @@ -282,7 +277,6 @@ def __init__(
a Python number. The maximum learning rate.
step_size: A scalar `float32` or `float64` `Tensor` or a
Python number. Step size.
scale_fn: A function. Scheduling function applied in cycle
scale_mode: ['cycle', 'iterations']. Mode to apply during cyclic
schedule
gamma: A scalar `float32` or `float64` `Tensor` or a
Expand Down

0 comments on commit d43ce29

Please sign in to comment.