Skip to content

Commit

Permalink
remove one too many optimizer (#364)
Browse files Browse the repository at this point in the history
* remove one too many optimizer

* Update tests.cmake

Co-authored-by: LG <[email protected]>
  • Loading branch information
marwage and lgarithm authored Nov 24, 2021
1 parent 1548ad2 commit 80dfa46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions srcs/cmake/tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ IF(KUNGFU_BUILD_GTEST)
EXTERNALPROJECT_ADD(
libgtest-dev-repo
GIT_REPOSITORY ${GTEST_GIT_URL}
GIT_TAG main
PREFIX ${PREFIX}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX}
-DCMAKE_CXX_FLAGS=-std=c++11 -Dgtest_disable_pthreads=1
Expand Down
2 changes: 1 addition & 1 deletion srcs/python/kungfu/tensorflow/optimizers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def apply_gradients(self, grads_and_vars, **kwargs):
grads_and_vars, **kwargs)

def get_config(self):
return self._optimizer.optimizer.get_config()
return self._optimizer.get_config()


class _KungFuAlgorithm:
Expand Down

0 comments on commit 80dfa46

Please sign in to comment.