Module: tfp.experimental.unnest

Utilities for accessing nested attributes.


class UnnestingWrapper: For when you want to get (nested) fields by usual attribute access.


get_innermost(...): Return a (nested) attribute value.

get_nested_objs(...): Finds the list of nested objects inside an object's attributes.

get_outermost(...): Return a (nested) attribute value.

has_nested(...): Check if the object has a (nested) attribute.

replace_innermost(...): Replace (nested) fields in a namedtuple.

replace_outermost(...): Replace (nested) fields in a namedtuple.