Skip to content

Commit

Permalink
Merge pull request #260 from madsbk/spill_dicts
Browse files Browse the repository at this point in the history
Support spilling of device objects in dictionaries
  • Loading branch information
pentschev authored Mar 24, 2020
2 parents bf6f868 + 0a94220 commit 259f36a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dask_cuda/is_device_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def is_device_object_python_collection(seq):
return any([is_device_object(s) for s in seq])


@is_device_object.register(dict)
def is_device_object_python_dict(seq):
return any([is_device_object(s) for s in seq.items()])


@is_device_object.register_lazy("cudf")
def register_cudf():
import cudf
Expand Down

0 comments on commit 259f36a

Please sign in to comment.