Home
last modified time | relevance | path

Searched refs:IsTuple (Results 1 – 25 of 133) sorted by relevance

123456

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_sharding.cc127 CHECK(tuple_shape.IsTuple()) << ShapeUtil::HumanString(tuple_shape); in Tuple()
129 CHECK(!sharding.IsTuple()) << sharding.ToString(); in Tuple()
140 CHECK(tuple_shape.IsTuple()) << ShapeUtil::HumanString(tuple_shape); in SingleTuple()
141 CHECK(!sharding.IsTuple()) << sharding.ToString(); in SingleTuple()
150 return shape.IsTuple() ? SingleTuple(shape, sharding) : sharding; in Single()
154 if (IsTuple()) { in ToString()
198 if (IsTuple()) { in UsesDevice()
210 if (IsTuple()) { in UsedDevices()
233 CHECK(!IsTuple()); in TileIndexForDevice()
250 CHECK(!IsTuple()); in DeviceForTileIndex()
[all …]
Droot_instruction_sinker.cc26 CHECK(root->shape().IsTuple()); in SinkTupleRoot()
41 CHECK(!root->shape().IsTuple()); in SinkNontupleRoot()
63 if (computation->root_instruction()->shape().IsTuple()) { in Run()
Doptimize_input_output_buffer_alias.cc35 return shape.IsTuple() && !ShapeUtil::IsNestedTuple(shape); in IsNonNestedTuple()
58 if (subshape.IsTuple()) { in Build()
68 if (subshape.IsTuple()) { in Build()
Dconditional_canonicalizer.cc28 TF_RET_CHECK(!root->shape().IsTuple()); in CanonicalizeNonTupleConditional()
53 !inst->shape().IsTuple()) { in Run()
Dtuple_util.cc24 CHECK(input_tuple->shape().IsTuple()); in ExtractPrefix()
44 CHECK(input_tuple->shape().IsTuple()); in AppendSuffix()
Dhlo_sharding.h123 bool IsTuple() const { return tuple_; } in IsTuple() function
127 if (!IsTuple()) { in IsReplicated()
136 if (!IsTuple()) { in IsTileMaximal()
146 if (!IsTuple()) { in IsManual()
Dhlo_sharding_metadata.cc188 TF_RET_CHECK(!lhs->IsTuple() && !rhs.IsTuple()); in AssignLeafSharding()
237 TF_RET_CHECK(instruction->shape().IsTuple() && in ApplyShardingFromUsers()
269 if (instruction->shape().IsTuple()) { in ApplyShardingFromUsers()
301 if (instruction->shape().IsTuple()) { in ApplyShardingFromUsers()
364 TF_RET_CHECK(instruction->shape().IsTuple()) in ApplyDomainSharding()
Dhlo_element_type_converter.cc71 CHECK(!subshape.IsTuple()); in GetConvertedTupleShape()
95 CHECK(!ele_shape.IsTuple()); in ConvertTupleElements()
194 } else if (hlo->shape().IsTuple()) { in Run()
Dhlo_query.cc156 if (send->is_host_transfer() && send->operand(0)->shape().IsTuple()) { in HasX64TransformedHostTransfer()
162 recv->shape().tuple_shapes(0).IsTuple()) { in HasX64TransformedHostTransfer()
Dhlo_value.cc50 instruction->shape().IsTuple() ? (" " + index.ToString()) : ""; in ToString()
60 string index_str = instruction->operand(operand_number)->shape().IsTuple() in ToString()
93 instruction()->shape().IsTuple() ? index().ToString() : "", in ToShortString()
Dsort_simplifier.cc34 if (!sort->shape().IsTuple()) { in RemoveUnusedOperandFromSort()
112 if (new_sort->shape().IsTuple()) { in RemoveUnusedOperandFromSort()
Dtransfer_manager.cc215 if (buffer_shape.IsTuple()) { in ReadDynamicShapes()
300 if (device_subshape.IsTuple() && in WriteTupleIndexTablesAsync()
324 TF_RET_CHECK(device_buffer.on_device_shape().IsTuple()); in WriteRootTupleIndexTable()
343 TF_RET_CHECK(buffer_tree.shape().IsTuple()); in WriteRootTupleIndexTable()
Dconditional_simplifier.cc210 if (!param->shape().IsTuple()) { in TryRemoveUnusedConditionalOperands()
342 !conditional_op->shape().IsTuple()) { in RemoveUnusedTupleElements()
393 if (!root->shape().IsTuple() || in RemoveUnusedTupleElements()
494 !conditional->shape().IsTuple()) { in MergeDuplicateTupleElements()
Dwhile_loop_simplifier.cc229 if (!while_init->shape().IsTuple()) { in TryRemoveDeadWhileParams()
403 if (!while_init->shape().IsTuple()) { in TryRemoveRepeatedWhileTupleIndices()
410 if (!while_init->shape().IsTuple() || in TryRemoveRepeatedWhileTupleIndices()
797 CHECK(desired_shape.IsTuple()) << ShapeUtil::HumanString(desired_shape); in UnflattenTupleInstr()
806 if (!subshape.IsTuple()) { in UnflattenTupleInstr()
816 if (!s.IsTuple()) { in UnflattenTupleInstr()
838 if (!shape.IsTuple()) { in GetFlatTupleElems()
878 if (!s.IsTuple()) { in TryFlattenNestedTuples()
Dbuffer_value.cc33 is_tuple_ = shape.IsTuple(); in BufferValue()
/external/tensorflow/tensorflow/compiler/xla/
Dlayout_util.cc145 if (shape->IsTuple()) { in SetToDefaultLayout()
177 if (shape.IsTuple()) { in ValidateLayoutInShape()
209 if (shape.IsTuple()) { in ValidateLayoutForShape()
296 if (shape.IsTuple()) { in HasLayout()
367 if (src.IsTuple() != dst->IsTuple()) { in CopyLayoutInternal()
371 if (src.IsTuple()) { in CopyLayoutInternal()
405 if (lhs.IsTuple()) { in LayoutsInShapesEqual()
406 if (!rhs.IsTuple() || ShapeUtil::TupleElementCount(lhs) != in LayoutsInShapesEqual()
Dshape_layout.cc60 CHECK(!shape_.IsTuple()); in layout()
69 CHECK(!shape_.IsTuple()); in ResetLayout()
77 CHECK(shape_.IsTuple()); in ResetLayout()
Dshape_util.cc407 CHECK(!shape->IsTuple()); in UpdateDynamicDimension()
486 return shape.IsTuple() && in IsNestedTuple()
488 [](const Shape& s) { return s.IsTuple(); }); in IsNestedTuple()
492 return shape.IsTuple() && TupleElementCount(shape) == 0; in IsEmptyTuple()
496 CHECK(shape.IsTuple()) << HumanString(shape); in TupleElementCount()
502 CHECK(shape.IsTuple()); in GetTupleElementShape()
518 CHECK(tuple.IsTuple()); in SliceTuple()
547 CHECK(shape.IsArray() || shape.IsTuple()); in ElementsInRecursive()
581 if (shape.IsTuple()) { in HumanString()
605 if (shape.IsTuple()) { in HumanStringWithLayout()
[all …]
Dshape.cc87 if (IsTuple()) { in is_static()
120 if (lhs.IsTuple()) { in operator ()()
121 return rhs.IsTuple() && in operator ()()
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DPR22806_constrain_tuple_like_ctor.pass.cpp32 struct IsTuple : std::false_type {}; struct
35 struct IsTuple<Tuple, std::tuple<Args...>> : std::true_type {}; struct
44 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type>
57 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type>
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DPR22806_constrain_tuple_like_ctor.pass.cpp33 struct IsTuple : std::false_type {}; struct
36 struct IsTuple<Tuple, std::tuple<Args...>> : std::true_type {}; struct
45 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type>
58 template <class Tuple, class = typename std::enable_if<IsTuple<Tuple>::value>::type>
/external/tensorflow/tensorflow/compiler/tf2xla/
Dshape_util.cc30 if (shape.IsTuple()) { in PopulateInfeedLayoutVector()
90 if (shape.IsTuple()) { in XLAShapeToTensorShape()
177 if (input_shape.IsTuple()) { in GetShapeWithLayout()
185 if (shape.IsTuple()) { in GetShapeWithLayout()
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/client/
Dtpu_client.cc184 if (!tuple_shape.IsTuple()) { in FromLiterals()
309 if (!on_host_shape_.IsTuple()) { in CopyToHostAsync()
368 if (!on_host_shape_.IsTuple()) { in DestructureTuple()
393 if (on_host_shape_.IsTuple()) { in CopyToDevice()
446 if (!shape.IsTuple()) { in AllocateBuffer()
478 TF_RET_CHECK(!non_tuple_shape.IsTuple()); in CreateBuffer()
657 if (result.buffer->on_host_shape().IsTuple()) { in Execute()
744 if (results[i].buffer->on_host_shape().IsTuple()) { in ExecuteOnLocalDevices()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter_nested.cc138 CHECK(return_shape.IsTuple()); in CodegenNestedComputation()
171 if (hlo.shape().IsTuple()) { in EmitTargetElementLoop()
/external/tensorflow/tensorflow/python/util/
Dutil.h107 bool IsTuple(PyObject* o);

123456