Skip to content

Commit

Permalink
Update debug tests to remove use of deprecated np.bool (#981)
Browse files Browse the repository at this point in the history
Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Benjamin Zaitlen (https://github.com/quasiben)

URL: #981
  • Loading branch information
pentschev authored Aug 14, 2023
1 parent 7d230eb commit be4cdd9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ async def send(ep, frames):

await ep.send(np.array([len(frames)], dtype=np.uint64))
await ep.send(
np.array(
[hasattr(f, "__cuda_array_interface__") for f in frames], dtype=np.bool
)
np.array([hasattr(f, "__cuda_array_interface__") for f in frames], dtype=bool)
)
await ep.send(np.array([nbytes(f) for f in frames], dtype=np.uint64))
# Send frames
Expand All @@ -96,7 +94,7 @@ async def recv(ep):
# Recv meta data
nframes = np.empty(1, dtype=np.uint64)
await ep.recv(nframes)
is_cudas = np.empty(nframes[0], dtype=np.bool)
is_cudas = np.empty(nframes[0], dtype=bool)
await ep.recv(is_cudas)
sizes = np.empty(nframes[0], dtype=np.uint64)
await ep.recv(sizes)
Expand Down

0 comments on commit be4cdd9

Please sign in to comment.