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.cc473 TEST(ShapeUtilTest, IsLeafIndex) { in TEST() argument
476 EXPECT_TRUE(ShapeUtil::IsLeafIndex(array_shape, {})); in TEST()
480 EXPECT_FALSE(ShapeUtil::IsLeafIndex(tuple_shape, {})); in TEST()
481 EXPECT_TRUE(ShapeUtil::IsLeafIndex(tuple_shape, {0})); in TEST()
482 EXPECT_TRUE(ShapeUtil::IsLeafIndex(tuple_shape, {1})); in TEST()
490 EXPECT_FALSE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {})); in TEST()
491 EXPECT_TRUE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {0})); in TEST()
492 EXPECT_FALSE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {1})); in TEST()
493 EXPECT_TRUE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {1, 0})); in TEST()
494 EXPECT_TRUE(ShapeUtil::IsLeafIndex(nested_tuple_shape, {1, 1})); in TEST()
Dshape_util.cc818 bool ShapeUtil::IsLeafIndex(const Shape& shape, const ShapeIndex& index) { in IsLeafIndex() function in xla::ShapeUtil
837 if (IsLeafIndex(shape, index)) { in GetLeafShapes()
Dshape_util.h512 static bool IsLeafIndex(const Shape& shape, const ShapeIndex& index);
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_replication_analysis.cc290 if (!ShapeUtil::IsLeafIndex(param->shape(), index)) { in ComputeHloReplication()
302 if (!ShapeUtil::IsLeafIndex(param->shape(), index)) { in ComputeHloReplication()
Dbfloat16_propagation.cc435 if (!ShapeUtil::IsLeafIndex(parameter->shape(), index)) { in AdjustCalledComputationParameters()
475 if (!ShapeUtil::IsLeafIndex(hlo->shape(), index)) { in AdjustCalledComputationRoot()
Dlayout_assignment.cc769 if (!ShapeUtil::IsLeafIndex(parameter_layout.shape(), shape_index) || in CheckParameterLayout()
947 if (ShapeUtil::IsLeafIndex(instruction->shape(), index)) { in CheckLayouts()
1262 if (ShapeUtil::IsLeafIndex(shape_layout.shape(), index)) { in PropagateUseConstraintToDefs()
2017 if (!ShapeUtil::IsLeafIndex(param_layout->shape(), shape_index)) { in PropagateComputationLayouts()
Dbfloat16_normalization.cc110 if (ShapeUtil::IsLeafIndex(shape, index)) { in ShapeLeafCount()