Skip to content

ABOD fails when (default) device is cuda #11

@lwelzel

Description

@lwelzel

ABOD (potentially also others) fails when the (default) device is cuda because the indices generated by basic_operators.bottomk are always on cpu:

return tk[0].cpu(), tk[1].cpu()

Similarly for basic_operators.topk:

return tk[0].cpu(), tk[1].cpu()

Both functions do not respect the device kwarg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions