Commit 5d88dd6
authored
Avoid import matplotlib (#3720)
### Changes
Import matplotlib inside function and under
`skip_if_dependency_unavailable` decorator
### Reason for changes
`matplotlib` is not main NNCF requirements, it's part of optional
dependencies `nncf[plots]`
Currently matplotlib installing with `pymoo` but it will be removed in
the next release.1 parent ef28179 commit 5d88dd6
File tree
1 file changed
+4
-1
lines changed- src/nncf/quantization/algorithms/weight_compression
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
0 commit comments