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

Compressor updates #2136

Merged
merged 9 commits into from
Mar 11, 2020
Merged

Compressor updates #2136

merged 9 commits into from
Mar 11, 2020

Conversation

chicm-ms
Copy link
Contributor

@chicm-ms chicm-ms commented Mar 9, 2020

  1. Change optimizer to an optional parameter for pruner
  2. Fix an pruner example bug

@chicm-ms chicm-ms closed this Mar 10, 2020
@chicm-ms chicm-ms reopened this Mar 10, 2020
@liuzhe-lz liuzhe-lz changed the base branch from v1.4.1 to master March 11, 2020 03:15
@@ -179,6 +179,8 @@ def test(model, device, test_loader):

def main(args):
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
if not os.path.exists(args.checkpoints_dir):
os.makedirs(args.checkpoints_dir)
Copy link
Contributor

Choose a reason for hiding this comment

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

makedirs(..., exist_ok=True)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, updated.

@chicm-ms chicm-ms merged commit f002fcd into microsoft:master Mar 11, 2020
@chicm-ms chicm-ms deleted the compressor_update branch March 25, 2020 10:31
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.

6 participants