Skip to content

Commit

Permalink
Add get method to Config
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Sep 30, 2024
1 parent e80fe5b commit d3671cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keras/src/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def pop(self, *args):
def update(self, *args, **kwargs):
self._raise_if_frozen()
return self._config.update(*args, **kwargs)

def get(self, keyname, value=None):
return self._config.get(keyname, value)

def __setattr__(self, name, value):
attrs = object.__getattribute__(self, "__attrs__")
Expand Down

0 comments on commit d3671cf

Please sign in to comment.