Skip to content

Commit

Permalink
add workaround (intel#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spycsh authored Apr 4, 2023
1 parent dabf27f commit cb355f0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ def on_epoch_end(self, epoch, logs=None):
prune_model.save_pretrained(model_path, saved_model=True)
component.model = os.path.join(model_path, "saved_model/1")
component.model.model_type = "saved_model"
component.model.sess
hooks['on_epoch_end']()

# pylint: disable=E1121
Expand Down

0 comments on commit cb355f0

Please sign in to comment.