Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_array.cc78 CHECK(LayoutUtil::HasLayout(shape)) in Index()
96 CHECK(LayoutUtil::HasLayout(shape)) in Index()
172 if (linear() != nullptr && LayoutUtil::HasLayout(input_shape) && in SourceIndexOfReshape()
173 LayoutUtil::HasLayout(output_shape) && in SourceIndexOfReshape()
208 if (linear() != nullptr && LayoutUtil::HasLayout(operand_shape) && in SourceIndexOfTranspose()
209 LayoutUtil::HasLayout(shape) && in SourceIndexOfTranspose()
220 CHECK(LayoutUtil::HasLayout(shape) && LayoutUtil::HasLayout(operand_shape)); in SourceIndexOfBitcast()
259 if (linear_ == nullptr || !LayoutUtil::HasLayout(operand_shape) || in SourceIndexOfBroadcast()
260 !LayoutUtil::HasLayout(shape)) { in SourceIndexOfBroadcast()
/external/tensorflow/tensorflow/compiler/xla/service/
Doptimize_input_output_buffer_alias.cc43 TF_RET_CHECK(LayoutUtil::HasLayout(input_shape)); in Build()
44 TF_RET_CHECK(LayoutUtil::HasLayout(output_shape)); in Build()
Dzero_sized_hlo_elimination.cc43 if (!LayoutUtil::HasLayout(shape)) { in Run()
Dtransfer_manager.cc312 if (!LayoutUtil::HasLayout(on_host_shape)) { in AllocateScopedShapedBuffer()
318 TF_RET_CHECK(LayoutUtil::HasLayout(on_device_shape)); in AllocateScopedShapedBuffer()
Dlayout_assignment.cc406 TF_RET_CHECK(LayoutUtil::HasLayout(data_shape)); in BuildHostChannelConstraints()
774 TF_RET_CHECK(LayoutUtil::HasLayout(shape_with_layout)); in CreateCopyWithNewLayout()
836 TF_RET_CHECK(LayoutUtil::HasLayout(operand->shape())); in CopyOperandIfLayoutsDiffer()
884 TF_RET_CHECK(LayoutUtil::HasLayout(instruction->shape())); in CheckLayouts()
1660 TF_RET_CHECK(LayoutUtil::HasLayout(instruction->shape())); in AssignLayouts()
Dhlo_verifier.cc552 TF_RET_CHECK(LayoutUtil::HasLayout(custom_call->shape())); in HandleCustomCall()
562 TF_RET_CHECK(LayoutUtil::HasLayout(operand_shape_with_layout)); in HandleCustomCall()
Dlayout_assignment_test.cc206 EXPECT_FALSE(LayoutUtil::HasLayout( in TEST_F()
242 EXPECT_TRUE(LayoutUtil::HasLayout(tuple->shape())); in TEST_F()
Dhlo_cost_analysis.cc126 if (!LayoutUtil::HasLayout(shape)) { in GetShapeSize()
Dalgebraic_simplifier.cc2597 if (!LayoutUtil::HasLayout(reshaped_shape)) { in HandleReshape()
3547 TF_RET_CHECK(LayoutUtil::HasLayout(input_shape)); in SimplifyConvToDot()
3548 TF_RET_CHECK(LayoutUtil::HasLayout(filter_shape)); in SimplifyConvToDot()
3549 TF_RET_CHECK(LayoutUtil::HasLayout(convolution_shape)); in SimplifyConvToDot()
Dpattern_matcher.h868 return LayoutUtil::HasLayout(*shape) &&
873 if (!LayoutUtil::HasLayout(*shape)) {
Dservice.cc947 if (!LayoutUtil::HasLayout(return_shape)) { in TransferToClient()
Dhlo_evaluator.cc1236 if (!LayoutUtil::HasLayout(instruction->shape())) { in HandleFusion()
Dhlo_parser.cc1507 if (!LayoutUtil::HasLayout(shape)) { in ParseInstructionRhs()
1520 if (!LayoutUtil::HasLayout(operand_shape_with_layout)) { in ParseInstructionRhs()
/external/tensorflow/tensorflow/compiler/xla/
Dlayout_util.cc306 /* static */ bool LayoutUtil::HasLayout(const Shape& shape) { in HasLayout() function in xla::LayoutUtil
310 [](const Shape& s) { return HasLayout(s); }); in HasLayout()
318 /* static */ bool LayoutUtil::HasLayout(const ProgramShape& program_shape) { in HasLayout() function in xla::LayoutUtil
320 if (!LayoutUtil::HasLayout(parameter_shape)) { in HasLayout()
324 return LayoutUtil::HasLayout(program_shape.result()); in HasLayout()
Dlayout_util.h124 static bool HasLayout(const Shape& shape);
127 static bool HasLayout(const ProgramShape& program_shape);
Dliteral.cc148 CHECK(LayoutUtil::HasLayout(*shape_)); in Literal()
299 if (!LayoutUtil::HasLayout(shape)) { in CreateFromProto()
1172 CHECK(LayoutUtil::HasLayout(literal.shape())); in ToStringHelper()
1173 CHECK(LayoutUtil::HasLayout(subshape)); in ToStringHelper()
1198 CHECK(LayoutUtil::HasLayout(this->shape())); in ToString()
1206 CHECK(LayoutUtil::HasLayout(this->shape())); in ToStringWithoutShape()
1214 CHECK(LayoutUtil::HasLayout(this->shape())); in ToStringWithLayout()
1970 TF_RET_CHECK(LayoutUtil::HasLayout(shape)); in CopyFromProto()
2157 CHECK(LayoutUtil::HasLayout(*shape_)); in MutableBorrowingLiteral()
2168 CHECK(LayoutUtil::HasLayout(*shape_)); in operator =()
[all …]
Dlayout_util_test.cc269 EXPECT_TRUE(LayoutUtil::HasLayout(shape)); in TEST_F()
275 EXPECT_FALSE(LayoutUtil::HasLayout(shape)); in TEST_F()
284 EXPECT_TRUE(LayoutUtil::HasLayout(shape)); in TEST_F()
286 EXPECT_TRUE(LayoutUtil::HasLayout(shape)); in TEST_F()
Dshape_layout.cc61 bool ShapeLayout::LayoutIsSet() const { return LayoutUtil::HasLayout(shape_); } in LayoutIsSet()
Dshape_util.cc471 } else if (shape.IsArray() && LayoutUtil::HasLayout(shape)) { in HumanStringWithLayout()
686 bool shape_has_valid_layout = LayoutUtil::HasLayout(shape) && in ValidateShapeSize()
1073 CHECK(LayoutUtil::HasLayout(input_shape) && in TransposeIsBitcast()
1074 LayoutUtil::HasLayout(output_shape)); in TransposeIsBitcast()
1104 CHECK(LayoutUtil::HasLayout(input_shape)); in ReshapeIsBitcast()
1105 CHECK(LayoutUtil::HasLayout(output_shape)); in ReshapeIsBitcast()
Dshape.cc103 if (LayoutUtil::HasLayout(*this)) { in DeleteDimension()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emission_utils.cc30 CHECK(!LayoutUtil::HasLayout(shape) || LayoutUtil::IsDense(shape.layout())); in GetMinimumAlignmentForArray()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dshape_util.cc37 } else if (xla::LayoutUtil::HasLayout(shape)) { in PopulateInfeedLayoutVector()
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.cc1284 if (!LayoutUtil::HasLayout(shape)) { in Infeed()
1360 if (!LayoutUtil::HasLayout(shape)) { in InfeedWithToken()
1393 if (!LayoutUtil::HasLayout(shape_with_layout)) { in Outfeed()
1446 if (!LayoutUtil::HasLayout(shape_with_layout)) { in OutfeedWithToken()
1509 if (!LayoutUtil::HasLayout(shape)) { in CustomCall()
1523 if (!LayoutUtil::HasLayout(operand_shape)) { in CustomCall()
2410 if (!LayoutUtil::HasLayout(shape_with_layout)) { in SendToHost()
2456 if (!LayoutUtil::HasLayout(shape)) { in RecvFromHost()