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
055d7552
Unverified
Commit
055d7552
authored
Apr 23, 2021
by
Xuesong Wang
Committed by
GitHub
Apr 23, 2021
Browse files
fix: fix the bug in nni/nas/pytorch/mutator, line no. 87 issue#3525 (#3561)
parent
ccccfe46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nni/nas/pytorch/mutator.py
nni/nas/pytorch/mutator.py
+1
-1
No files found.
nni/nas/pytorch/mutator.py
View file @
055d7552
...
...
@@ -84,7 +84,7 @@ class Mutator(BaseMutator):
data
=
dict
()
for
k
,
v
in
self
.
_cache
.
items
():
if
torch
.
is_tensor
(
v
):
v
=
v
.
detach
().
cpu
().
numpy
()
v
=
v
.
detach
().
cpu
().
numpy
()
.
tolist
()
if
isinstance
(
v
,
np
.
ndarray
):
v
=
v
.
astype
(
np
.
float32
).
tolist
()
data
[
k
]
=
v
...
...
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