Google I/O returns May 18-20! Reserve space and build your schedule Register now

tfp.experimental.lazybones.utils.get_leaves

Returns all childless descendants ("leaves") of (iterable) ancestors.