Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

refactor of modelspeedup example #2161

Merged
merged 11 commits into from
Mar 24, 2020

Conversation

QuanluZhang
Copy link
Contributor

No description provided.

@QuanluZhang QuanluZhang marked this pull request as ready for review March 18, 2020 14:09
"""
assert layer.name in self.masks
return self.masks[layer.name]
masks = torch.load(masks_file, map_location)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to wrap the whole function with with torch.no_grad()?

examples/model_compress/model_speedup.py Outdated Show resolved Hide resolved
@QuanluZhang QuanluZhang merged commit e0b692c into microsoft:master Mar 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants