Skip to content

Commit 76844fc

Browse files
author
reuvenp
committed
replace np.alltrue -> np.all
1 parent a683671 commit 76844fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pytorch_tests/model_tests/feature_models/scale_equalization_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def compare(self, quantized_models, float_model, input_x=None, quantization_info
9090
beta = float_model_layer2_weight / quantized_model_layer2_weight
9191

9292
self.unit_test.assertTrue(np.allclose(alpha, beta, atol=1e-5))
93-
self.unit_test.assertTrue(np.alltrue(alpha <= 1.0))
93+
self.unit_test.assertTrue(np.all(alpha <= 1.0))
9494
self.unit_test.assertTrue(np.allclose(alpha, scale_factor, atol=1e-5))
9595

9696

0 commit comments

Comments
 (0)