Skip to content

Commit

Permalink
Bug fix: Don't change original dict in from_config (keras-team#7903)
Browse files Browse the repository at this point in the history
  • Loading branch information
farizrahman4u authored and fchollet committed Sep 15, 2017
1 parent d95ab48 commit b24f444
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keras/layers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ def get_config(self):

@classmethod
def from_config(cls, config, custom_objects=None):
config = config.copy()
globs = globals()
if custom_objects:
globs = dict(list(globs.items()) + list(custom_objects.items()))
Expand Down

0 comments on commit b24f444

Please sign in to comment.