Searched refs:structure1 (Results 1 – 4 of 4) sorted by relevance
/external/tensorflow/tensorflow/python/data/util/ |
D | nest_test.py | 162 structure1 = (((1, 2), 3), 4, (5, 6)) 175 nest.assert_same_structure(structure1, structure2) 182 nest.assert_same_structure(structure1, structure_different_num_elements) 194 nest.assert_same_structure(structure1, structure_different_nesting) 218 nest.assert_same_structure(structure1, structure1_list) 219 nest.assert_same_structure(structure1, structure2, check_types=False) 220 nest.assert_same_structure(structure1, structure1_list, check_types=False) 234 structure1 = (((1, 2), 3), 4, (5, 6)) 236 structure1_plus1 = nest.map_structure(lambda x: x + 1, structure1) 237 nest.assert_same_structure(structure1, structure1_plus1) [all …]
|
/external/tensorflow/tensorflow/python/util/ |
D | nest_test.py | 285 structure1 = (((1, 2), 3), 4, (5, 6)) 289 nest.assert_same_structure(structure1, structure2) 306 nest.assert_same_structure(structure1, structure_different_num_elements) 334 nest.assert_same_structure(structure1, structure_different_nesting) 361 nest.assert_same_structure(structure1, structure1_list) 362 nest.assert_same_structure(structure1, structure2, check_types=False) 363 nest.assert_same_structure(structure1, structure1_list, check_types=False) 401 structure1 = (((1, 2), 3), 4, (5, 6)) 403 structure1_plus1 = nest.map_structure(lambda x: x + 1, structure1) 404 nest.assert_same_structure(structure1, structure1_plus1) [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | composite_tensor_test.py | 82 structure1 = [[st1], 'foo', {'y': [st2]}] 85 result = nest.pack_sequence_as(structure1, flat, expand_composites=True)
|
/external/tensorflow/tensorflow/python/eager/ |
D | function.py | 187 def is_same_structure(structure1, argument 192 nest.assert_same_structure(structure1, structure2) 196 flattened1 = nest.flatten(structure1)
|