Searched defs:flatten_up_to (Results 1 - 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/python/data/util/
H A Dnest.py394 def flatten_up_to(shallow_tree, input_tree): function
418 flattened_input_tree = flatten_up_to(shallow_tree, input_tree)
419 flattened_shallow_tree = flatten_up_to(shallow_tree, shallow_tree)
430 input_tree_flattened_as_shallow_tree = flatten_up_to(shallow_tree, input_tree)
441 flatten_up_to(0, 0) # Output: [0]
442 flatten_up_to(0, [0, 1, 2]) # Output: [[0, 1, 2]]
443 flatten_up_to([0, 1, 2], 0) # Output: TypeError
444 flatten_up_to([0, 1, 2], [0, 1, 2]) # Output: [0, 1, 2]
535 all_flattened_up_to = [flatten_up_to(shallow_tree, input_tree)
549 "flatten_up_to",
[all...]
/external/tensorflow/tensorflow/python/util/
H A Dnest.py556 def flatten_up_to(shallow_tree, input_tree): function
580 flattened_input_tree = flatten_up_to(shallow_tree, input_tree)
581 flattened_shallow_tree = flatten_up_to(shallow_tree, shallow_tree)
592 input_tree_flattened_as_shallow_tree = flatten_up_to(shallow_tree, input_tree)
603 flatten_up_to(0, 0) # Output: [0]
604 flatten_up_to(0, [0, 1, 2]) # Output: [[0, 1, 2]]
605 flatten_up_to([0, 1, 2], 0) # Output: TypeError
606 flatten_up_to([0, 1, 2], [0, 1, 2]) # Output: [0, 1, 2]
697 all_flattened_up_to = [flatten_up_to(shallow_tree, input_tree)
722 `map_structure_up_to` and `flatten_up_to`
[all...]

Completed in 130 milliseconds