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

[BugFix] fix compression bugs #5140

Merged
merged 9 commits into from
Oct 19, 2022
Merged

[BugFix] fix compression bugs #5140

merged 9 commits into from
Oct 19, 2022

Conversation

J-shang
Copy link
Contributor

@J-shang J-shang commented Sep 26, 2022

Description

Depend on #5138

Fixed:

Test Options

  • fast test
  • full test - HPO
  • full test - NAS
  • full test - compression

Checklist

  • test case
  • doc

How to test

@J-shang J-shang added the v2.9.1 label Sep 26, 2022
@@ -152,8 +152,12 @@ def _get_parent_layers(self, node):
parent_layers = []
queue = []
queue.append(node)
viewed_set = set()
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest: other variables to record visited nodes are named 'visited'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -38,13 +36,13 @@ def forward(self, x):
from torchvision import datasets, transforms

train_loader = torch.utils.data.DataLoader(
datasets.MNIST(root_path / 'data', train=True, download=True, transform=transforms.Compose([
datasets.MNIST('data', train=True, download=True, transform=transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.1307,), (0.3081,))
Copy link
Contributor

Choose a reason for hiding this comment

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

are these magic number?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, magic number for mnist dataset

@Louis-J
Copy link
Contributor

Louis-J commented Oct 18, 2022

/azp run fast test

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@Louis-J Louis-J merged commit a966834 into microsoft:master Oct 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants