Skip to content

Commit

Permalink
import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhailin committed Nov 17, 2023
1 parent e7247a8 commit 43d032d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepray/core/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def __init__(

# TODO: fuhailin
# if isinstance(optimizer, optimizers.Optimizer):
self.optimizer = optimizer
self.optimizer = optimizer
# else:
# raise ValueError("Not support opt.")
self.use_float16 = common_flags.use_float16()
Expand Down
2 changes: 1 addition & 1 deletion deepray/optimizers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@
)
from deepray.optimizers.yogi import Yogi
from deepray.optimizers.cocob import COCOB
from deepray.optimizers.adam import AdamOptimizer
from deepray.optimizers.adam import Adam

0 comments on commit 43d032d

Please sign in to comment.