Skip to content

Commit

Permalink
Register dict as potential device object
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Mar 24, 2020
1 parent bf6f868 commit 0a94220
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 0a94220

Please sign in to comment.