Skip to content

Commit

Permalink
Update save_pruned_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-ecm authored Feb 25, 2023
1 parent aff9539 commit 941ecd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions save_pruned_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def get_gzipped_model_size(model):
# Returns size of gzipped model, in bytes.
import os
import zipfile
import tempfile

_, keras_file = tempfile.mkstemp('.h5')
model.save(keras_file, include_optimizer=False)
Expand Down

0 comments on commit 941ecd9

Please sign in to comment.