ak.typetracer.length_one_if_typetracer#

Defined in awkward.typetracer on line 70.

ak.typetracer.length_one_if_typetracer(array, *, highlevel=True, behavior=None)#
Parameters

Recursively touches the data of an array, before returning a length-one NumPy-backed iff. the given array has a typetracer backend; otherwise, a shallow copy of the original array is returned.