Skip to content

Commit

Permalink
Change layer checkpoint dependencies to empty dict (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkovela1 committed Jan 4, 2024
1 parent 6315e97 commit 60f5fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_cv/utils/preset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,6 @@ def legacy_load_weights(layer, weights_path):
if cls.__name__ == "Functional":
functional_cls = cls
property = functional_cls._layer_checkpoint_dependencies
functional_cls._layer_checkpoint_dependencies = []
functional_cls._layer_checkpoint_dependencies = {}
layer.load_weights(weights_path)
functional_cls._layer_checkpoint_dependencies = property

0 comments on commit 60f5fa0

Please sign in to comment.