An example from SciPy:
n_clusters = int(xp.unique_values(T).shape[0])
We calculate the number of unique values in T via a data-dependent shape. As noted in the spec for unique_values, the function may be omitted by lazy libraries due to the data-dependent shape.
Is there an alternative in the standard which works with lazy arrays? If not, can there be?
x-ref gh-748, data-apis/array-api-compat#175