Skip to content

Check for consistency of passing array_ns/backend #1160

@msimberg

Description

@msimberg

If a numpy/cupy array is passed to a function and there's no need to otherwise specify the array_ns because it can be derived from the array, don't pass array_ns.

Likely the rule should be:

  • Inputs are already numpy/cupy arrays -> derive
  • Only the output is an array -> pass in array_ns because it can't be derived otherwise

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions