Created
June 21, 2020 15:49
-
-
Save sayakpaul/621e32438e7407fec1e67f831d0a164d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pruning_schedule = tfmot.sparsity.keras.ConstantSparsity( | |
target_sparsity=target_sparsity, | |
begin_step=begin_step, | |
end_step=end_step, | |
frequency=frequency | |
) | |
pruned_model = tfmot.sparsity.keras.prune_low_magnitude( | |
trained_model, pruning_schedule=pruning_schedule | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment