Commit b61e63a
authored
fix(research): replace deprecated np.int with int in mobilenet_v3 (#13609)
The use of `np.int` was deprecated in NumPy 1.20 and completely
removed in NumPy 1.24. This change caused `_reduce_consecutive_layers`
to fail with an AttributeError when using NumPy 1.24+.
This commit replaces `np.int` with the built-in `int` function
to ensure compatibility with modern NumPy versions.
Affected file: research/slim/nets/mobilenet/mobilenet_v3.py1 parent b654c5b commit b61e63a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
| 751 | + | |
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| |||
0 commit comments