MCPcopy Create free account
hub / github.com/NVIDIA/DALI / get_spec_for_array

Function get_spec_for_array

dali/python/nvidia/dali/plugin/jax/clu.py:33–36  ·  view source on GitHub ↗

Utility to get ArraySpec for given JAX array.

(jax_array)

Source from the content-addressed store, hash-verified

31
32
33def get_spec_for_array(jax_array):
34 """Utility to get ArraySpec for given JAX array."""
35
36 return ArraySpec(shape=jax_array.shape, dtype=jax_array.dtype)
37
38
39class DALIGenericPeekableIterator(DALIGenericIterator):

Callers 2

_set_element_specMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected