Skip to content

Commit

Permalink
ENH: support cudf Buffer BufferOwner structure (#798)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
hucorz and mergify[bot] authored Aug 18, 2024
1 parent bf9317e commit c4e4931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/xorbits/_mars/_utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def tokenize_cupy(ob):
def tokenize_cudf(ob):
from xoscar.serialization import serialize
header, buffers = serialize(ob)
return iterative_tokenize([header] + [(buf.ptr, buf.size) for buf in buffers])
return iterative_tokenize([header] + [(buf._owner._ptr, buf.size) for buf in buffers])


cdef Tokenizer tokenize_handler = Tokenizer()
Expand Down

0 comments on commit c4e4931

Please sign in to comment.