Searched refs:SameDimensions (Results 1 – 10 of 10) sorted by relevance
/external/tensorflow/tensorflow/compiler/xla/ |
D | shape_util_test.cc | 349 TEST(ShapeUtilTest, SameDimensions) { in TEST() argument 350 EXPECT_TRUE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {}), in TEST() 352 EXPECT_TRUE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {}), in TEST() 354 EXPECT_TRUE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {1}), in TEST() 356 EXPECT_TRUE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {0}), in TEST() 358 EXPECT_TRUE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {2}), in TEST() 360 EXPECT_FALSE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {1}), in TEST() 362 EXPECT_FALSE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {0, 0}), in TEST() 364 EXPECT_FALSE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {1}), in TEST() 366 EXPECT_FALSE(ShapeUtil::SameDimensions(ShapeUtil::MakeShape(S32, {}), in TEST() [all …]
|
D | shape_util.cc | 106 if (!ShapeUtil::SameDimensions(lhs, rhs)) { in CompareShapes() 610 /* static */ bool ShapeUtil::SameDimensions(const Shape& lhs, in SameDimensions() function in xla::ShapeUtil 620 return SameDimensions(lhs, rhs) && SameElementType(lhs, rhs); in Compatible() 630 return SameDimensions(lhs, rhs); in CompatibleIgnoringElementType()
|
D | shape_util.h | 211 static bool SameDimensions(const Shape& lhs, const Shape& rhs);
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | reshape_mover.cc | 116 !ShapeUtil::SameDimensions(a->shape(), b->shape())) { in AreEquivalentReshapes() 123 return ShapeUtil::SameDimensions(a->operand(0)->shape(), in AreEquivalentReshapes() 152 if (!ShapeUtil::SameDimensions(operand->shape(), instruction->shape())) { in AllOperandsHaveEasyShapeChanges()
|
D | implicit_broadcast_remover.cc | 75 if (!ShapeUtil::SameDimensions(hlo->shape(), operand->shape())) { in ReplaceImplicitBroadcastOperands()
|
D | hlo_evaluator.cc | 152 if (!ShapeUtil::SameDimensions(shape, operand->shape())) { in ElementWiseUnaryOpImpl() 342 TF_RET_CHECK(ShapeUtil::SameDimensions(operand->shape(), convert->shape())); in HandleConvert() 1971 if (!(ShapeUtil::SameDimensions(shape, rhs->shape()) && in ElementWiseBinaryOp() 1972 ShapeUtil::SameDimensions(lhs->shape(), rhs->shape()))) { in ElementWiseBinaryOp() 2006 if (!(ShapeUtil::SameDimensions(shape, lhs->shape()) && in ElementwiseTernaryOp() 2007 ShapeUtil::SameDimensions(lhs->shape(), rhs->shape()) && in ElementwiseTernaryOp() 2008 ShapeUtil::SameDimensions(rhs->shape(), ehs->shape()))) { in ElementwiseTernaryOp() 2314 if (!(ShapeUtil::SameDimensions(compare->shape(), rhs->shape()) && in HandleCompare() 2315 ShapeUtil::SameDimensions(lhs->shape(), rhs->shape()))) { in HandleCompare()
|
D | user_computation.cc | 3319 if (!ShapeUtil::SameDimensions(request.output_shape(), lhs->shape())) { in Visit() 3325 if (!ShapeUtil::SameDimensions(request.output_shape(), rhs->shape())) { in Visit() 3330 if (!ShapeUtil::SameDimensions(request.output_shape(), ehs->shape())) { in Visit() 3457 if (!ShapeUtil::SameDimensions(request.output_shape(), lhs->shape())) { in Visit() 3463 if (!ShapeUtil::SameDimensions(request.output_shape(), rhs->shape())) { in Visit()
|
D | algebraic_simplifier.cc | 691 if (ShapeUtil::SameDimensions(hlo->shape(), dot->shape())) { in HandleDotStrengthReduction()
|
D | shape_inference.cc | 2403 if (ShapeUtil::SameDimensions(pred, on_true) || ShapeUtil::Rank(pred) == 0) { in InferSelectShape()
|
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/ |
D | loop_emitter.cc | 87 CHECK(ShapeUtil::SameDimensions(shape_, array.GetShape())); in LoopEmitter()
|