Home
last modified time | relevance | path

Searched refs:HasPrimitiveType (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dshape_util_test.cc344 TEST(ShapeUtilTest, HasPrimitiveType) { in TEST() argument
345 EXPECT_TRUE(ShapeUtil::HasPrimitiveType(ShapeUtil::MakeShape(S32, {}), S32)); in TEST()
346 EXPECT_FALSE(ShapeUtil::HasPrimitiveType(ShapeUtil::MakeShape(S32, {}), S16)); in TEST()
347 EXPECT_TRUE(ShapeUtil::HasPrimitiveType(ShapeUtil::MakeShape(S32, {0}), S32)); in TEST()
348 EXPECT_FALSE(ShapeUtil::HasPrimitiveType(ShapeUtil::MakeTupleShape({}), S32)); in TEST()
349 EXPECT_TRUE(ShapeUtil::HasPrimitiveType( in TEST()
353 EXPECT_TRUE(ShapeUtil::HasPrimitiveType( in TEST()
Dshape_util.cc401 /* static */ bool ShapeUtil::HasPrimitiveType(const Shape& shape, in HasPrimitiveType() function in xla::ShapeUtil
407 if (HasPrimitiveType(element_shape, primitive_type)) { in HasPrimitiveType()
Dshape_util.h195 static bool HasPrimitiveType(const Shape& shape,
Dliteral.cc296 if (ShapeUtil::HasPrimitiveType(shape, OPAQUE)) { in CreateFromProto()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_get_dimension_size_rewriter.cc41 TF_RET_CHECK(ShapeUtil::HasPrimitiveType(instr->shape(), U32)); in ReplaceGetSize()
Dhlo_graph_dumper.cc123 if (ShapeUtil::HasPrimitiveType(instr->shape(), OPAQUE) || in IsSmall()
124 ShapeUtil::HasPrimitiveType(instr->shape(), TOKEN)) { in IsSmall()
Dalgebraic_simplifier.cc570 if (ShapeUtil::HasPrimitiveType(lhs->shape(), xla::PRED) && in HandleAnd()
571 ShapeUtil::HasPrimitiveType(rhs->shape(), xla::PRED)) { in HandleAnd()
1884 if (ShapeUtil::HasPrimitiveType(lhs->shape(), xla::PRED) && in HandleOr()
1885 ShapeUtil::HasPrimitiveType(rhs->shape(), xla::PRED)) { in HandleOr()
/external/tensorflow/tensorflow/compiler/xrt/tests/
Draw_api_test.cc1234 EXPECT_TRUE(xla::ShapeUtil::HasPrimitiveType( in TEST()