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
28da51a4
"examples/model_compress/pruning/fpgm_pruning_torch.py" did not exist on "a6bed3cf67f44e13a52bd3af92df5c332d7758b0"
Unverified
Commit
28da51a4
authored
Oct 17, 2022
by
Yuge Zhang
Committed by
GitHub
Oct 17, 2022
Browse files
Fix import error in Lightning (#5155)
parent
ec5f3e63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
nni/nas/evaluator/pytorch/__init__.py
nni/nas/evaluator/pytorch/__init__.py
+8
-1
No files found.
nni/nas/evaluator/pytorch/__init__.py
View file @
28da51a4
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from
.lightning
import
*
import
warnings
try
:
from
.lightning
import
*
except
ImportError
:
warnings
.
warn
(
"PyTorch-Lightning must be installed to use PyTorch in NAS. "
"If you are not using PyTorch, please `nni.set_default_framework('none')`"
)
raise
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