Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define you own pruning method #5

Open
SalemAmeen opened this issue Jan 9, 2020 · 0 comments
Open

Define you own pruning method #5

SalemAmeen opened this issue Jan 9, 2020 · 0 comments

Comments

@SalemAmeen
Copy link

Could you please provide an example of how to use other pruning methods?

I tried to use RandomFilterPruning() but I kept receiving an error

for example
r = RandomFilterPruning()
TypeError: init() missing 4 required positional arguments: 'removal_factor', 'model_compile_fn', 'model_finetune_fn', and 'nb_finetune_epochs'

g = RandomFilterPruning.run_pruning(compile_model,
finetune_model,
nb_finetune_epochs=1,
maximum_pruning_percent=0.05,
maximum_prune_iterations=2,
nb_trained_for_epochs=FIRST_TRAIN_EPOCHS )
TypeError: run_pruning() got an unexpected keyword argument 'nb_finetune_epochs'

Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant