diff --git a/keras/src/saving/saving_lib.py b/keras/src/saving/saving_lib.py index 13d408f9538..4d77886ec18 100644 --- a/keras/src/saving/saving_lib.py +++ b/keras/src/saving/saving_lib.py @@ -1073,7 +1073,7 @@ def __init__(self, root_path, archive=None, mode="r"): self.f = archive.open(root_path, mode="r") else: self.f = open(root_path, mode="rb") - self.contents = np.load(self.f, allow_pickle=True) + self.contents = np.load(self.f) def make(self, path, metadata=None): if not path: