Home
last modified time | relevance | path

Searched refs:transform_tree (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/contrib/graph_editor/
Dutil.py133 def transform_tree(tree, fn, iterable_type=tuple): function
150 (k, transform_tree(child, fn)) for k, child in iteritems(tree))
155 res = tree.__new__(type(tree), **transform_tree(tree._asdict(), fn))
158 (transform_tree(child, fn) for child in tree))
162 res.__init__(transform_tree(child, fn) for child in tree)
165 return iterable_type(transform_tree(child, fn) for child in tree)
564 return transform_tree(targets, func)
Dtransform.py279 return util.transform_tree(original, transformed_elem)
297 return util.transform_tree(transformed, original_elem)