class already defined line 11
178
179
180
181class AdaBound(Optimizer):182 r"""Implements AdaBound algorithm with Decoupled Weight Decay (arxiv.org/abs/1711.05101)
183
184 It has been proposed in `Adaptive Gradient Methods with Dynamic Bound of
Description
A function, method or class is being redefined in the same scope. This would override the original definition, and doing this is strongly discouraged. Please verify that this is something that you intended to do. Redefining anything can lead to confusion, decreases code readability and may cause bugs that are difficult to diagnose. It is recommended either to refactor the function/method/class, or choose different names.
Bad practice
def calc(x, y):
return x + y
def calc(x, y):
return x * y
Recommended
def calc_sum(x, y):
return x + y
def calc_product(x, y):
return x * y