Save the date! Google I/O returns May 18-20 Register now

tfp.experimental.lazybones.utils.get_roots

Returns all parentless ancestors ("roots") of (iterable) descendants.