Skip to content

Commit

Permalink
Modify layer checkpoint dependencies to empty list (#2247)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkovela1 committed Jan 4, 2024
1 parent cfdaeeb commit 6315e97
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 = None
functional_cls._layer_checkpoint_dependencies = []
layer.load_weights(weights_path)
functional_cls._layer_checkpoint_dependencies = property

0 comments on commit 6315e97

Please sign in to comment.