-
Notifications
You must be signed in to change notification settings - Fork 11
Description
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