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 authored and sampathweb committed Dec 19, 2023
1 parent b8dabd6 commit c5fda25
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 c5fda25

Please sign in to comment.