Skip to content

minor bug: jax tests reference jax.interpreters.xla.DeviceArray #660

Open
@leventov

Description

@leventov

Describe the issue:

#133 In this PR, the second branch of this conditional:

if must_be_device_array:
if isinstance(jax_res, list):
assert all(isinstance(res, jax.Array) for res in jax_res)
else:
assert isinstance(jax_res, jax.interpreters.xla.DeviceArray)

was evidently not updated only because it is never executed in the tests.

cc @ricardoV94

Reproducable code example:

n/a

Error message:

No response

PyTensor version information:

n/a

Context for the issue:

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions