Closed erick-xanadu closed 4 days ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.97%. Comparing base (
6c5032c
) to head (ad6edbc
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for the fix @erick-xanadu! My only question is should we create the jax array from the get go, or do we have to do generate a numpy array first? If the latter this is good to merge :)
@dime10: I haven't found a good C++ API for creating JAX arrays. We use the Numpy C++ Array API for creating arrays to avoid creating copies of memref data.
Context: We should return
jax.Array
's instead ofnumpy.array
'sDescription of the Change: Call
jax.numpy.asarray()
before returningBenefits: meets user expectations.
Possible Drawbacks: None.
Related GitHub Issues:
Should NOT be cherry picked to RC