Skip to content
New issue

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

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

Already on GitHub? # to your account

function not defined #1

Open
draymondLiu opened this issue Jan 6, 2023 · 2 comments
Open

function not defined #1

draymondLiu opened this issue Jan 6, 2023 · 2 comments

Comments

@draymondLiu
Copy link

Could you provide the code of 'load_model_and_prune' and 'load_model' in test.py?

@dengbaowang
Copy link

Same request.

@dengbaowang
Copy link

Could you provide the code of 'load_model_and_prune' and 'load_model' in test.py?

Hi Draymond, I found that the function "build_model" shown in test_prune.py is actually your expected function "load_model_and_prune". So you can just change the function name to "build_model" in line 193. Also, load_model(model_path) could be replaced by model.load_state_dict(torch.load(model_path)). Hope this help you :)

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

No branches or pull requests

2 participants