Skip to content

Commit 2997589

Browse files
JanuszLbanasraf
authored andcommitted
Update the DALI EfficientNet example to be compatible with the latest NumPy (#5561)
- removes deprecated usage of some NumPy types in favor of the build-ones (np.int->int) Signed-off-by: Janusz Lisiecki <[email protected]>
1 parent 6eb20ca commit 2997589

File tree

1 file changed

+1
-1
lines changed
  • docs/examples/use_cases/pytorch/efficientnet/image_classification

1 file changed

+1
-1
lines changed

docs/examples/use_cases/pytorch/efficientnet/image_classification/autoaugment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self):
7575
"translateY": np.linspace(0, 250, 11),
7676
"rotate": np.linspace(0, 30, 11),
7777
"color": np.linspace(0.1, 1.9, 11),
78-
"posterize": np.round(np.linspace(0, 4, 11), 0).astype(np.int),
78+
"posterize": np.round(np.linspace(0, 4, 11), 0).astype(int),
7979
"solarize": np.linspace(0, 256, 11),
8080
"solarizeadd": np.linspace(0, 110, 11),
8181
"contrast": np.linspace(0.1, 1.9, 11),

0 commit comments

Comments
 (0)