Home
last modified time | relevance | path

Searched refs:HasLayout (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_array.cc114 CHECK(LayoutUtil::HasLayout(shape)) in Index()
135 CHECK(LayoutUtil::HasLayout(shape)) in Index()
155 CHECK(LayoutUtil::HasLayout(shape)) in Index()
179 CHECK(LayoutUtil::HasLayout(shape)) in Index()
288 if (linear() != nullptr && LayoutUtil::HasLayout(input_shape) && in SourceIndexOfReshape()
289 LayoutUtil::HasLayout(output_shape) && in SourceIndexOfReshape()
320 if (linear() != nullptr && LayoutUtil::HasLayout(operand_shape) && in SourceIndexOfTranspose()
321 LayoutUtil::HasLayout(shape) && in SourceIndexOfTranspose()
332 CHECK(LayoutUtil::HasLayout(shape) && LayoutUtil::HasLayout(operand_shape)); in SourceIndexOfBitcast()
375 if (linear_ == nullptr || !LayoutUtil::HasLayout(operand_shape) || in SourceIndexOfBroadcast()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Doptimize_input_output_buffer_alias.cc44 TF_RET_CHECK(LayoutUtil::HasLayout(input_shape)); in Build()
45 TF_RET_CHECK(LayoutUtil::HasLayout(output_shape)); in Build()
Dzero_sized_hlo_elimination.cc47 if (!LayoutUtil::HasLayout(shape)) { in Run()
Dtransfer_manager.cc384 if (!LayoutUtil::HasLayout(on_host_shape)) { in AllocateScopedShapedBuffer()
392 TF_RET_CHECK(LayoutUtil::HasLayout(on_device_shape)); in AllocateScopedShapedBuffer()
Dlayout_assignment.cc518 TF_RET_CHECK(LayoutUtil::HasLayout(data_shape)); in BuildHostChannelConstraints()
991 TF_RET_CHECK(LayoutUtil::HasLayout(shape_with_layout)); in CreateCopyWithNewLayout()
1054 TF_RET_CHECK(LayoutUtil::HasLayout(operand->shape())); in CopyOperandIfLayoutsDiffer()
1139 TF_RET_CHECK(LayoutUtil::HasLayout(instruction->shape())); in CheckLayouts()
2036 TF_RET_CHECK(LayoutUtil::HasLayout(instruction->shape())); in AssignLayouts()
Dlayout_assignment_test.cc207 EXPECT_FALSE(LayoutUtil::HasLayout( in TEST_F()
243 EXPECT_TRUE(LayoutUtil::HasLayout(tuple->shape())); in TEST_F()
Dpattern_matcher.h903 return LayoutUtil::HasLayout(*shape) &&
908 if (!LayoutUtil::HasLayout(*shape)) {
Dhlo_cost_analysis.cc139 if (!LayoutUtil::HasLayout(shape)) { in GetShapeSize()
Dhlo_verifier.cc1170 TF_RET_CHECK(LayoutUtil::HasLayout(custom_call->shape())); in HandleCustomCall()
1180 TF_RET_CHECK(LayoutUtil::HasLayout(operand_shape_with_layout)); in HandleCustomCall()
Dservice.cc987 if (!LayoutUtil::HasLayout(return_shape)) { in TransferToClient()
Dalgebraic_simplifier.cc4257 if (!LayoutUtil::HasLayout(reshaped_shape)) { in HandleReshape()
6563 TF_RET_CHECK(LayoutUtil::HasLayout(input_shape)); in SimplifyConvToDot()
6564 TF_RET_CHECK(LayoutUtil::HasLayout(filter_shape)); in SimplifyConvToDot()
6565 TF_RET_CHECK(LayoutUtil::HasLayout(convolution_shape)); in SimplifyConvToDot()
Dhlo_parser.cc2651 if (!LayoutUtil::HasLayout(*shape)) { in CreateInstruction()
2664 if (!LayoutUtil::HasLayout(operand_shape_with_layout)) { in CreateInstruction()
Dhlo_evaluator.cc3153 if (!LayoutUtil::HasLayout(instruction->shape())) { in HandleFusion()
/external/tensorflow/tensorflow/compiler/xla/
Dlayout_util.h149 static bool HasLayout(const Shape& shape);
152 static bool HasLayout(const ProgramShape& program_shape);
Dlayout_util.cc359 /* static */ bool LayoutUtil::HasLayout(const Shape& shape) { in HasLayout() function in xla::LayoutUtil
363 [](const Shape& s) { return HasLayout(s); }); in HasLayout()
371 /* static */ bool LayoutUtil::HasLayout(const ProgramShape& program_shape) { in HasLayout() function in xla::LayoutUtil
373 if (!LayoutUtil::HasLayout(parameter_shape)) { in HasLayout()
377 return LayoutUtil::HasLayout(program_shape.result()); in HasLayout()
Dlayout_util_test.cc245 EXPECT_TRUE(LayoutUtil::HasLayout(shape)); in TEST_F()
251 EXPECT_FALSE(LayoutUtil::HasLayout(shape)); in TEST_F()
260 EXPECT_TRUE(LayoutUtil::HasLayout(shape)); in TEST_F()
262 EXPECT_TRUE(LayoutUtil::HasLayout(shape)); in TEST_F()
Dshape_layout.cc90 bool ShapeLayout::LayoutIsSet() const { return LayoutUtil::HasLayout(shape_); } in LayoutIsSet()
Dliteral.cc281 LayoutUtil::HasLayout(*shape_)); in Literal()
466 if (!LayoutUtil::HasLayout(shape)) { in CreateFromProto()
1414 CHECK(LayoutUtil::HasLayout(literal.shape())); in ToStringHelper()
1415 CHECK(LayoutUtil::HasLayout(subshape)); in ToStringHelper()
1442 CHECK(LayoutUtil::HasLayout(this->shape())); in ToString()
1454 CHECK(LayoutUtil::HasLayout(this->shape())); in ToStringWithoutShape()
1466 CHECK(LayoutUtil::HasLayout(this->shape())); in ToStringWithLayout()
2386 TF_RET_CHECK(LayoutUtil::HasLayout(shape)); in CopyFromProto()
2590 CHECK(LayoutUtil::HasLayout(*shape_)); in MutableBorrowingLiteral()
2601 CHECK(LayoutUtil::HasLayout(*shape_)); in operator =()
[all …]
Dshape.cc128 if (LayoutUtil::HasLayout(*this)) { in DeleteDimension()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dshape_util.cc37 } else if (xla::LayoutUtil::HasLayout(shape)) { in PopulateInfeedLayoutVector()
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.cc1751 if (!LayoutUtil::HasLayout(shape)) { in Infeed()
1824 if (!LayoutUtil::HasLayout(shape)) { in InfeedWithToken()
1862 if (!LayoutUtil::HasLayout(shape_with_layout)) { in Outfeed()
1911 if (!LayoutUtil::HasLayout(shape_with_layout)) { in OutfeedWithToken()
1983 if (!LayoutUtil::HasLayout(shape)) { in CustomCall()
1996 if (!LayoutUtil::HasLayout(operand_shape)) { in CustomCall()
2091 if (!LayoutUtil::HasLayout(shape)) { in CustomCall()
2104 if (!LayoutUtil::HasLayout(operand_shape)) { in CustomCall()
2968 if (!LayoutUtil::HasLayout(*shape_with_layout)) { in AllReduce()
3472 if (!LayoutUtil::HasLayout(shape_with_layout)) { in SendToHost()
[all …]