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

Need Clarification regarding prune_deit() in - https://github.com/locuslab/wanda/blob/main/image_classifiers/main.py #41

Open
solomonmanuelraj opened this issue Apr 16, 2024 · 0 comments

Comments

@solomonmanuelraj
Copy link

Hi Team,

in the image classifier code, ( https://github.com/locuslab/wanda/blob/main/image_classifiers/main.py)

in line number 324 to 332,

#############################################################################
tick = time.time()
if args.sparsity != 0:
with torch.no_grad():
if "convnext" in args.model:
prune_convnext(args, model, calib_data, device)
elif "vit" in args.model:
prune_vit(args, model, calib_data, device)
elif "deit" in args.model:
prune_vit(args, model, calib_data, device)
###########################################################################
in line number 329 and 331 conditions both the time you are calling prune_vit(). why we are not calling prune_deit() even though we have imported that in the from prune_utils import prune_convnext, prune_deit, prune_vit, check_sparsity line.

regards

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