Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion keras/src/legacy/saving/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def _shared_object_loading_scope():

def _shared_object_saving_scope():
"""Get the current shared object saving scope in a threadsafe manner."""
return getattr(SHARED_OBJECT_SAVING, "scope", None)
obj_dict = SHARED_OBJECT_SAVING.__dict__
return obj_dict.get("scope", None)


class DisableSharedObjectScope:
Expand Down