Closed
Description
Some libraries, particularly those with a graph-based computational model (e.g., Dask and TensorFlow), have support for "unknown" or "data dependent" shapes, e.g., due to boolean indexing such as x[y > 0]
(#84). Other libraries (e.g., JAX and Dask in some cases) do not support some operations because they would produce such data dependent shapes.
We should consider a standard way to represent these shapes in shape
attributes, ideally some extension of the "tuple of integer" format used for fully known shapes. For example, TensorFlow and Dask currently use different representations:
- TensorFlow uses a custom
TensorShape
object (which acts very similarly totuple
), where some values may beNone
- Dask uses tuples, where some values may be
nan
integer of integers
Metadata
Metadata
Assignees
Labels
No labels