Searched refs:IsZeroElementArray (Results 1 – 18 of 18) sorted by relevance
/external/tensorflow/tensorflow/compiler/xla/ |
D | shape_util_test.cc | 382 TEST(ShapeUtilTest, IsZeroElementArray) { in TEST() argument 383 EXPECT_FALSE(ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {}))); in TEST() 384 EXPECT_TRUE(ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {0}))); in TEST() 385 EXPECT_FALSE(ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {1}))); in TEST() 387 ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {1, 1}))); in TEST() 388 EXPECT_FALSE(ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {2}))); in TEST() 390 ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {2, 1}))); in TEST() 392 ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {3, 5}))); in TEST() 394 ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {3, 0, 5}))); in TEST() 396 ShapeUtil::IsZeroElementArray(ShapeUtil::MakeShape(S32, {0, 3, 0}))); in TEST() [all …]
|
D | shape_util.h | 207 static bool IsZeroElementArray(const Shape& shape); 770 if (ShapeUtil::IsZeroElementArray(shape)) {
|
D | literal.cc | 219 } else if (!ShapeUtil::IsZeroElementArray(shape()) && in CopySliceFromInternal() 220 !ShapeUtil::IsZeroElementArray(src_literal.shape())) { in CopySliceFromInternal() 371 if (ShapeUtil::IsZeroElementArray(dest_shape)) { in CopyElementsBetween() 1110 if (ShapeUtil::IsZeroElementArray(shape())) { in EachCellAsString() 1556 if (ShapeUtil::IsZeroElementArray(piece.subshape())) { in IsAllFirst()
|
D | literal.h | 915 if (ShapeUtil::IsZeroElementArray(shape())) { in EachCell()
|
D | shape_util.cc | 461 /* static */ bool ShapeUtil::IsZeroElementArray(const Shape& shape) { in IsZeroElementArray() function in xla::ShapeUtil
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | ir_emission_utils.cc | 67 if (ShapeUtil::IsZeroElementArray(input_shape) || in PotentiallyImplementedAsEigenConvolution() 68 ShapeUtil::IsZeroElementArray(kernel_shape)) { in PotentiallyImplementedAsEigenConvolution()
|
D | dot_op_emitter.cc | 824 if (ShapeUtil::IsZeroElementArray(dot_info.lhs_shape) || in IsAlignedGemm() 825 ShapeUtil::IsZeroElementArray(dot_info.rhs_shape)) { in IsAlignedGemm()
|
D | ir_emitter.cc | 2177 if (ShapeUtil::IsZeroElementArray(slice->shape())) { in HandleSlice()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | zero_sized_hlo_elimination.cc | 39 ShapeUtil::IsZeroElementArray(instruction->shape())) { in Run()
|
D | gather_expander.cc | 309 CHECK(!ShapeUtil::IsZeroElementArray(gather_instr->shape())); in ExpandInstruction() 376 !ShapeUtil::IsZeroElementArray(inst->shape()); in InstructionMatchesPattern()
|
D | algebraic_simplifier.cc | 810 if (!ShapeUtil::IsZeroElementArray(operand->shape())) { in HandleConcatenate() 1857 if (ShapeUtil::IsZeroElementArray(dot->shape()) || in HandleDot() 1858 ShapeUtil::IsZeroElementArray(lhs->shape()) || in HandleDot() 1859 ShapeUtil::IsZeroElementArray(rhs->shape())) { in HandleDot() 2044 if (ShapeUtil::IsZeroElementArray(operand_shape)) { in HandleGather() 2678 if (ShapeUtil::IsZeroElementArray(pad->operand(0)->shape())) { in HandlePad() 3122 if (ShapeUtil::IsZeroElementArray(reshape->shape())) { in HandleReshape() 3543 if (ShapeUtil::IsZeroElementArray(update->shape())) { in HandleDynamicUpdateSlice() 3564 if (ShapeUtil::IsZeroElementArray(arg->shape()) || in HandleReduce() 3565 ShapeUtil::IsZeroElementArray(reduce_result_shape)) { in HandleReduce() [all …]
|
D | scatter_expander.cc | 355 if (ShapeUtil::IsZeroElementArray(updates->shape())) { in ExpandScatter()
|
D | triangular_solve_expander.cc | 426 if (ShapeUtil::IsZeroElementArray(b_shape)) { in BuildTriangularSolve()
|
D | hlo_graph_dumper.cc | 832 if (ShapeUtil::IsZeroElementArray(shape)) { in GetInstructionNodeInlinedOperands()
|
D | hlo_evaluator.cc | 1742 if (ShapeUtil::IsZeroElementArray(operand_shape)) { in HandleGather()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | ir_emission_utils.cc | 64 !ShapeUtil::IsZeroElementArray(lhs_shape) && in AreValidGemmShapes() 65 !ShapeUtil::IsZeroElementArray(rhs_shape); in AreValidGemmShapes()
|
D | gpu_conv_rewriter.cc | 75 if (ShapeUtil::IsZeroElementArray(conv->operand(0)->shape()) || in CanImplementAsGpuForwardConv() 76 ShapeUtil::IsZeroElementArray(conv->operand(1)->shape())) { in CanImplementAsGpuForwardConv()
|
D | ir_emitter.cc | 675 if (ShapeUtil::IsZeroElementArray(convolution->shape())) { in HandleConvolution() 685 if (ShapeUtil::IsZeroElementArray(fft->shape())) { in HandleFft()
|