Home
last modified time | relevance | path

Searched refs:IsLeafIndex (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dshape_util_test.cc475 TEST(ShapeUtilTest, IsLeafIndex) { in TEST() argument
478 EXPECT_TRUE(ShapeUtil::IsLeafIndex(array_shape, {})); in TEST()
482 EXPECT_FALSE(ShapeUtil::IsLeafIndex(tuple_shape, {})); in TEST()
483 EXPECT_TRUE(ShapeUtil::IsLeafIndex(tuple_shape, {0})); in TEST()
484 EXPECT_TRUE(ShapeUtil::IsLeafIndex(tuple_shape, {1})); in TEST()
492 EXPECT_FALSE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {})); in TEST()
493 EXPECT_TRUE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {0})); in TEST()
494 EXPECT_FALSE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {1})); in TEST()
495 EXPECT_TRUE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {1, 0})); in TEST()
496 EXPECT_TRUE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {1, 1})); in TEST()
Dshape_util.h561 static bool IsLeafIndex(const Shape& shape, const ShapeIndex& index);
Dshape_util.cc945 bool ShapeUtil::IsLeafIndex(const Shape& shape, const ShapeIndex& index) { in IsLeafIndex() function in xla::ShapeUtil
964 if (IsLeafIndex(shape, index)) { in GetLeafShapes()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_replication_analysis.cc340 if (!ShapeUtil::IsLeafIndex(param->shape(), index)) { in ComputeHloReplication()
352 if (!ShapeUtil::IsLeafIndex(param->shape(), index)) { in ComputeHloReplication()
Dbfloat16_propagation.cc482 if (!ShapeUtil::IsLeafIndex(parameter->shape(), index)) { in AdjustCalledComputationParameters()
528 if (!ShapeUtil::IsLeafIndex(hlo->shape(), index)) { in AdjustCalledComputationRoot()
Dlayout_assignment.cc770 if (!ShapeUtil::IsLeafIndex(parameter_layout.shape(), shape_index) || in CheckParameterLayout()
948 if (ShapeUtil::IsLeafIndex(instruction->shape(), index)) { in CheckLayouts()
1263 if (ShapeUtil::IsLeafIndex(shape_layout.shape(), index)) { in PropagateUseConstraintToDefs()
2057 if (!ShapeUtil::IsLeafIndex(param_layout->shape(), shape_index)) { in PropagateComputationLayouts()
Dbfloat16_normalization.cc110 if (ShapeUtil::IsLeafIndex(shape, index)) { in ShapeLeafCount()