Skip to content

Commit cfba7d3

Browse files
committed
CLN: minor fix
1 parent 7837d31 commit cfba7d3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tensorflow_addons/optimizers/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ licenses(["notice"]) # Apache 2.0
33
package(default_visibility = ["//visibility:public"])
44

55
py_library(
6-
name = "opt_py",
6+
name = "optimizers_*",
77
srcs = [
88
"__init__.py",
99
"python/__init__.py",
@@ -20,7 +20,7 @@ py_test(
2020
],
2121
main = "python/lazy_adam_optimizer_test.py",
2222
deps = [
23-
":opt_py",
23+
":optimizers_*",
2424
],
2525
srcs_version = "PY2AND3",
2626
)

tensorflow_addons/optimizers/python/lazy_adam_optimizer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@
2929
from tensorflow.python.ops import control_flow_ops
3030
from tensorflow.python.ops import math_ops
3131
from tensorflow.python.ops import resource_variable_ops
32-
from tensorflow.python.ops import state_ops
3332

3433

3534
class LazyAdamOptimizer(adam.Adam):
36-
"""Variant of the Adam optimizer that handles sparse updates more
37-
efficiently.
35+
"""Variant of the Adam optimizer that handles sparse updates more efficiently.
3836
3937
The original Adam algorithm maintains two moving-average accumulators for
4038
each trainable variable; the accumulators are updated at every step.

tensorflow_addons/optimizers/python/lazy_adam_optimizer_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def get_beta_accumulators(opt, dtype):
6060
return (beta_1_power, beta_2_power)
6161

6262

63-
class AdamOptimizerTest(test.TestCase):
63+
class LazyAdamOptimizerTest(test.TestCase):
64+
65+
# TODO: remove v1 tests (keep pace with adamax_test.py in keras).
6466
@test_util.run_deprecated_v1
6567
def testSparse(self):
6668
for dtype in [dtypes.half, dtypes.float32, dtypes.float64]:

0 commit comments

Comments
 (0)