Skip to content

Commit

Permalink
Replace to_device with DeviceBuffer.to_device (#1033)
Browse files Browse the repository at this point in the history
As well as in the basic python docs, `to_device` was also
explicitly referenced in the README. Follows up #902 which
missed this reference.

Authors:
  - Lawrence Mitchell (https://github.com/wence-)

Approvers:
  - https://github.com/jakirkham

URL: #1033
  • Loading branch information
wence- authored May 10, 2022
1 parent 34e3fd8 commit 3b0f7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ DeviceBuffers can also be created by copying data from host memory:
>>> import rmm
>>> import numpy as np
>>> a = np.array([1, 2, 3], dtype='float64')
>>> buf = rmm.to_device(a.tobytes())
>>> buf = rmm.DeviceBuffer.to_device(a.tobytes())
>>> buf.size
24
```
Expand Down

0 comments on commit 3b0f7fc

Please sign in to comment.