gpflow.utilities.traversal¶
gpflow.utilities.traversal.traverse_module¶
- gpflow.utilities.traversal.traverse_module(m, acc, update_cb, target_types)[source]¶
Recursively traverses m, accumulating in acc a path and a state until it finds an object of type in target_types to apply update_cb to update the accumulator acc and/or the object.
- Parameters
- Return type
Tuple
[str
,Any
]- Returns