Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
8ac072ae
Unverified
Commit
8ac072ae
authored
Apr 07, 2022
by
J-shang
Committed by
GitHub
Apr 07, 2022
Browse files
[Bugbash] promote pruning v2 (#4733)
parent
1a3c019a
Changes
102
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test/ut/compression/v2/test_pruning_wrapper.py
test/ut/compression/v2/test_pruning_wrapper.py
+1
-1
test/ut/compression/v2/test_scheduler.py
test/ut/compression/v2/test_scheduler.py
+1
-1
No files found.
test/ut/compression/v2/test_pruning_wrapper.py
View file @
8ac072ae
...
@@ -6,7 +6,7 @@ import unittest
...
@@ -6,7 +6,7 @@ import unittest
import
torch
import
torch
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
from
nni.
algorithms.
compression.
v2.
pytorch.pruning
import
L1NormPruner
from
nni.compression.pytorch.pruning
import
L1NormPruner
class
TorchModel
(
torch
.
nn
.
Module
):
class
TorchModel
(
torch
.
nn
.
Module
):
def
__init__
(
self
):
def
__init__
(
self
):
...
...
test/ut/compression/v2/test_scheduler.py
View file @
8ac072ae
...
@@ -6,7 +6,7 @@ import unittest
...
@@ -6,7 +6,7 @@ import unittest
import
torch
import
torch
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
from
nni.
algorithms.
compression.
v2.
pytorch.pruning
import
PruningScheduler
,
L1NormPruner
from
nni.compression.pytorch.pruning
import
PruningScheduler
,
L1NormPruner
from
nni.algorithms.compression.v2.pytorch.pruning.tools
import
AGPTaskGenerator
from
nni.algorithms.compression.v2.pytorch.pruning.tools
import
AGPTaskGenerator
...
...
Prev
1
2
3
4
5
6
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment