Skip to content

Commit 80802c2

Browse files
hawkinsptensorflower-gardener
authored andcommitted
[numpy] Fix users of NumPy APIs that are removed in NumPy 2.0.
This change migrates users of APIs removed in NumPy 2.0 to their recommended replacements (https://numpy.org/devdocs/numpy_2_0_migration_guide.html). PiperOrigin-RevId: 655999944
1 parent a56f33c commit 80802c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_privacy/privacy/fast_gradient_clipping/common_test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def make_weighted_bow_model(
359359
feature_shape = input_dims + output_dims
360360
feature_weights = tf.expand_dims(
361361
tf.reshape(
362-
tf.range(np.product(feature_shape), dtype=tf.float32),
362+
tf.range(np.prod(feature_shape), dtype=tf.float32),
363363
feature_shape,
364364
),
365365
axis=0,

0 commit comments

Comments
 (0)