Skip to content

Commit

Permalink
Remove use of deprecated numpy builtin alias np.int (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverholworthy authored May 4, 2023
1 parent 25bcdd6 commit 866492b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/tf/core/test_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ def flip_target(target):
features, targets = mm.sample_batch(ecommerce_data, batch_size=100)
outputs, context = model(features, targets=targets, training=True, output_context=True)

flipped = np.logical_not(targets["click"].numpy()).astype(np.int)
flipped = np.logical_not(targets["click"].numpy()).astype(int)
assert np.array_equal(context.targets["click"], flipped)

0 comments on commit 866492b

Please sign in to comment.