JAX array typing confusion #327
Labels
improvement
Improvement of existing code, including addressing of omissions or inconsistencies
typing
Related to type annotations
The type name
JaxArray
is defined inscico.typing
, but a number of modules (e.g.scico/linop/_linop.py
,scico/linop/_matrix.py
, andscico/numpy/util.py
) include the importand use
DeviceArray
instead ofJaxArray
for typing.It seems most likely that this is just an oversight, but it's also possible that in some cases it's intentional, since
JaxArray
does not have an identitical definition. This uncertaintly should be resolved, and all instances of importingDeviceArray
fromjax.interpreters.xla
should be replaced by use of an appropriate definition fromscico.typing
.The text was updated successfully, but these errors were encountered: