Home
last modified time | relevance | path

Searched refs:tuple_elements (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dtuple_util.cc29 std::vector<HloInstruction*> tuple_elements; in ExtractPrefix() local
30 tuple_elements.reserve(elements); in ExtractPrefix()
32 tuple_elements.push_back( in ExtractPrefix()
38 HloInstruction::CreateTuple(tuple_elements)); in ExtractPrefix()
48 std::vector<HloInstruction*> tuple_elements; in AppendSuffix() local
49 tuple_elements.reserve(input_shape.tuple_shapes_size()); in AppendSuffix()
51 tuple_elements.push_back( in AppendSuffix()
55 tuple_elements.insert(tuple_elements.end(), trailing_values.begin(), in AppendSuffix()
58 HloInstruction::CreateTuple(tuple_elements)); in AppendSuffix()
Dstable_sort_expander.cc113 std::vector<HloInstruction*> tuple_elements; in ExpandInstruction() local
114 tuple_elements.reserve(sort->operand_count()); in ExpandInstruction()
116 tuple_elements.push_back( in ExpandInstruction()
120 expanded_sort = tuple_elements[0]; in ExpandInstruction()
121 if (tuple_elements.size() > 1) { in ExpandInstruction()
123 HloInstruction::CreateTuple(tuple_elements)); in ExpandInstruction()
Dhlo_element_type_converter.cc89 std::vector<HloInstruction*> tuple_elements; in ConvertTupleElements() local
100 tuple_elements.push_back(element); in ConvertTupleElements()
103 HloInstruction::CreateTuple(tuple_elements)); in ConvertTupleElements()
Dhlo_sharding.h210 const std::vector<HloSharding>& tuple_elements() const { in tuple_elements() function
Dhlo_sharding.cc122 for (auto& tuple_element_sharding : tuple_elements()) { in UsedDevices()
128 element_count = tuple_elements().size(); in UsedDevices()
Dhlo_instructions.cc1476 HloInstruction::InstructionVector tuple_elements; in CloneAndFuseInternal() local
1479 tuple_elements = fused_root->operands(); in CloneAndFuseInternal()
1481 tuple_elements.push_back(fused_root); in CloneAndFuseInternal()
1486 tuple_elements.push_back(inst); in CloneAndFuseInternal()
1489 tuple_elements.push_back(clone); in CloneAndFuseInternal()
1492 HloInstruction::CreateTuple(tuple_elements)); in CloneAndFuseInternal()
1507 int64 index = tuple_elements.size(); in CloneAndFuseInternal()
Dhlo_sharding_metadata.cc239 domain_sharding.tuple_elements().size()); in ApplyShardingFromUsers()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dshape_util.cc31 int64 tuple_elements = xla::ShapeUtil::TupleElementCount(shape); in PopulateInfeedLayoutVector() local
32 for (int64 i = 0; i < tuple_elements; ++i) { in PopulateInfeedLayoutVector()
135 int64 tuple_elements = xla::ShapeUtil::TupleElementCount(input_shape); in GetShapeWithLayout() local
137 shapes.reserve(tuple_elements); in GetShapeWithLayout()
139 for (int64 i = 0; i < tuple_elements; ++i) { in GetShapeWithLayout()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dtransfer_manager_test.cc322 std::vector<Literal> tuple_elements; in Run() local
324 tuple_elements.push_back( in Run()
327 Literal literal = LiteralUtil::MakeTupleOwned(std::move(tuple_elements)); in Run()
353 std::vector<Literal> tuple_elements; in Run() local
355 tuple_elements.push_back( in Run()
358 Literal literal = LiteralUtil::MakeTupleOwned(std::move(tuple_elements)); in Run()
/external/tensorflow/tensorflow/compiler/xla/service/g3doc/
Dhlo_parser.md84 | '(' tuple_elements ')'
86 tuple_elements
/external/tensorflow/tensorflow/compiler/xla/
Dliteral_comparison.cc190 const int64 tuple_elements = ShapeUtil::TupleElementCount(shape); in RecursiveElementCount() local
192 for (int64 i = 0; i < tuple_elements; ++i) { in RecursiveElementCount()
Dliteral_test.cc1662 Literal tuple_elements[] = { in TEST_F() local
1668 {&tuple_elements[0], &tuple_elements[1], &nil_literal}); in TEST_F()