Skip to content

ENH: config manager to record all device transfers #168

@lucascolley

Description

@lucascolley

EDIT: see #168 (comment)

Related to gh-70 but separate from the main discussion there.

This issue follows up on a discussion I had with @ogrisel over dinner the other day, where Olivier suggested that it might be useful for array-api-strict to have a mode which disallows changing the device of an array.

Right now, by default, mixing devices in a single function call is disallowed. However, changing the device of an array, in to_device and array creation functions, is allowed, as far as I can tell from skimming the code.

This may be a sensible default (e.g. otherwise to_device is a bit useless), however it may make sense to be able to override this behaviour, if a consuming library wants to ensure a single device is maintained throughout a test. I believe this is of interest to scikit-learn.

cc @betatim from previous device-related involvement

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions