/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | client_library_test_base.cc | 171 absl::Span<GlobalData* const> arguments, const Shape* shape_with_layout) { in ComputeAndCompareLiteral() argument 173 shape_with_layout)); in ComputeAndCompareLiteral() 179 const Shape* shape_with_layout) { in ComputeAndCompareLiteral() argument 181 error, shape_with_layout)); in ComputeAndCompareLiteral() 275 const Shape* shape_with_layout) { in ComputeAndTransfer() argument 293 return ExecuteAndTransfer(computation, arguments, shape_with_layout); in ComputeAndTransfer() 299 const Shape* shape_with_layout) { in ComputeAndCompareLiteralWithStatus() argument 329 if (shape_with_layout != nullptr) { in ComputeAndCompareLiteralWithStatus() 330 layout_shape = *shape_with_layout; in ComputeAndCompareLiteralWithStatus() 337 shape_with_layout = &layout_shape; in ComputeAndCompareLiteralWithStatus() [all …]
|
D | client_library_test_base.h | 185 const Shape* shape_with_layout = nullptr); 189 const Shape* shape_with_layout = nullptr); 196 const Shape* shape_with_layout = nullptr); 202 const Shape* shape_with_layout = nullptr); 206 const Shape* shape_with_layout = nullptr);
|
D | local_client_execute_test.cc | 264 Shape shape_with_layout = ShapeUtil::MakeTupleShape( in XLA_TEST_F() local 269 options.set_result_layout(shape_with_layout); in XLA_TEST_F()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | layout_assignment.h | 285 const Shape& shape_with_layout, int64_t priority); 349 Status SetInstructionLayout(const Shape& shape_with_layout, 353 return SetInstructionLayout(shape_with_layout, instruction, mandatory, dfs, 356 Status SetInstructionLayout(const Shape& shape_with_layout, 374 Status SetOperandLayout(const Shape& shape_with_layout, 377 return SetOperandLayout(shape_with_layout, instruction, operand_no, 380 Status SetOperandLayout(const Shape& shape_with_layout, 576 const Shape& shape_with_layout, HloInstruction* instruction);
|
D | layout_assignment.cc | 235 Status LayoutAssignment::SetOperandLayout(const Shape& shape_with_layout, in SetOperandLayout() argument 258 << ShapeUtil::HumanStringWithLayout(shape_with_layout) in SetOperandLayout() 265 shape_with_layout, /*minor_to_major_only=*/true)) { in SetOperandLayout() 289 OperandLayoutConstraint new_constraint(ShapeLayout(shape_with_layout), in SetOperandLayout() 343 LayoutAssignment* assignment, const Shape& shape_with_layout, in SetResultLayout() argument 345 VLOG(3) << " : " << ShapeUtil::HumanStringWithLayout(shape_with_layout) in SetResultLayout() 348 computation_constraint_.ResetResultLayout(ShapeLayout(shape_with_layout), in SetResultLayout() 394 Status LayoutAssignment::SetInstructionLayout(const Shape& shape_with_layout, in SetInstructionLayout() argument 400 << ShapeUtil::HumanStringWithLayout(shape_with_layout) in SetInstructionLayout() 404 if (!ShapeUtil::Compatible(shape_with_layout, instruction->shape())) { in SetInstructionLayout() [all …]
|
D | hlo_cost_analysis_test.cc | 826 Shape shape_with_layout = ShapeUtil::MakeShape(F32, {2, 3, 4, 5}); in TEST_F() local 828 Shape shape_without_layout = shape_with_layout; in TEST_F() 840 shape_with_layout, HloOpcode::kAdd, c1, broadcast)); in TEST_F()
|
D | service.cc | 986 return_shape = Shape(arg->shape_with_layout()); in TransferToClient() 1104 auto literal = Literal::CreateFromShape(Shape(arg->shape_with_layout())); in TransferFromOutfeed()
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | outfeed_receiver.cc | 428 Shape shape_with_layout = builder->GetShape(data).ValueOrDie(); in AddOutfeedToBuilder() local 430 &shape_with_layout, [](Shape* subshape, const ShapeIndex&) { in AddOutfeedToBuilder() 436 << "; shape=" << shape_with_layout.ToString(); in AddOutfeedToBuilder() 441 if (!ShapeUtil::Equal(shape_with_layout, found->second)) { in AddOutfeedToBuilder() 445 shape_with_layout.DebugString(), found->second.DebugString(), in AddOutfeedToBuilder() 449 shape_registry_.insert({consumer_id, shape_with_layout}); in AddOutfeedToBuilder() 461 token = OutfeedWithToken(data, token, shape_with_layout, ""); in AddOutfeedToBuilder()
|
D | ops.cc | 175 absl::Span<const XlaOp> operands, const Shape& shape_with_layout, in BuildOpsSubmodule() 181 builder, call_target_name, operands, shape_with_layout, in BuildOpsSubmodule() 194 absl::Span<const XlaOp> operands, const Shape& shape_with_layout, in BuildOpsSubmodule() argument 202 builder, call_target_name, operands, shape_with_layout, in BuildOpsSubmodule()
|
D | xla.cc | 161 Shape shape_with_layout = shape; in PYBIND11_MODULE() local 163 &shape_with_layout, [](Shape* subshape, const ShapeIndex&) { in PYBIND11_MODULE() 168 literal = std::make_shared<Literal>(shape_with_layout); in PYBIND11_MODULE()
|
D | xla_client_test.py | 379 shape_with_layout=xla_client.Shape.array_shape( 404 shape_with_layout=xla_client.Shape.array_shape( 2704 shape_with_layout=xla_client.Shape.scalar_shape(np.dtype(np.float32)), 2761 shape_with_layout=xla_client.Shape.scalar_shape(np.dtype(np.uint32)),
|
/external/tensorflow/tensorflow/compiler/xla/client/ |
D | client.cc | 41 const Shape* shape_with_layout) { in Transfer() argument 44 if (shape_with_layout != nullptr) { in Transfer() 45 *request.mutable_shape_with_layout() = shape_with_layout->ToProto(); in Transfer() 118 const Shape* shape_with_layout, int64_t replica_id, in TransferFromOutfeed() argument 125 if (shape_with_layout != nullptr) { in TransferFromOutfeed() 126 *request.mutable_shape_with_layout() = shape_with_layout->ToProto(); in TransferFromOutfeed()
|
D | client.h | 134 const Shape* shape_with_layout = nullptr); 160 const Shape* shape_with_layout, int64_t replica_id = 0,
|
D | executable_build_options.cc | 52 const Shape& shape_with_layout) { in set_result_layout() argument 54 result_layout_ = shape_with_layout; in set_result_layout()
|
D | xla_builder.cc | 1854 void XlaBuilder::Outfeed(XlaOp operand, const Shape& shape_with_layout, in Outfeed() argument 1862 if (!LayoutUtil::HasLayout(shape_with_layout)) { in Outfeed() 1866 if (!ShapeUtil::Compatible(*operand_shape, shape_with_layout)) { in Outfeed() 1869 ShapeUtil::HumanStringWithLayout(shape_with_layout), in Outfeed() 1872 *instr.mutable_outfeed_shape() = shape_with_layout.ToProto(); in Outfeed() 1907 const Shape& shape_with_layout, in OutfeedWithToken() argument 1911 if (!LayoutUtil::HasLayout(shape_with_layout)) { in OutfeedWithToken() 1915 if (!ShapeUtil::Compatible(*operand_shape, shape_with_layout)) { in OutfeedWithToken() 1918 ShapeUtil::HumanStringWithLayout(shape_with_layout), in OutfeedWithToken() 1921 return OutfeedWithTokenInternal(operand, token, shape_with_layout, in OutfeedWithToken() [all …]
|
D | xla_builder.h | 645 void Outfeed(XlaOp operand, const Shape& shape_with_layout, 648 const Shape& shape_with_layout, 651 XlaOp operand, XlaOp token, const Shape& shape_with_layout, 658 const Shape& shape_with_layout, const std::string& opaque, 672 const XlaComputation* computation, const Shape& shape_with_layout, 686 const XlaComputation& computation, const Shape& shape_with_layout, 758 const std::optional<Shape>& shape_with_layout = std::nullopt, 902 XlaOp SendToHost(XlaOp operand, XlaOp token, const Shape& shape_with_layout, 1255 friend void Outfeed(XlaOp operand, const Shape& shape_with_layout, 1277 absl::Span<const XlaOp> operands, const Shape& shape_with_layout, [all …]
|
D | executable_build_options.h | 56 ExecutableBuildOptions& set_result_layout(const Shape& shape_with_layout);
|
/external/tensorflow/tensorflow/compiler/xla/python/xla_extension/ |
D | ops.pyi | 70 shape_with_layout: Optional[_Layout] = ..., 77 shape_with_layout: Optional[_Layout] = ...) -> XlaOp: ... 186 shape_with_layout: Shape, 196 shape_with_layout: Shape, 265 shape_with_layout: Shape,
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | literal_util.cc | 404 Shape shape_with_layout = new_literal.shape(); in ReshapeSlice() local 405 *shape_with_layout.mutable_layout() = LayoutUtil::MakeLayout(minor_to_major); in ReshapeSlice() 412 IndexUtil::LinearIndexToMultidimensionalIndex(shape_with_layout, i); in ReshapeSlice()
|
D | literal.cc | 861 Literal LiteralBase::Relayout(const Shape& shape_with_layout) const { in Relayout() 862 CHECK(ShapeUtil::Compatible(shape_with_layout, shape())) in Relayout() 863 << "Given shape_with_layout " << ShapeUtil::HumanString(shape_with_layout) in Relayout() 866 Literal result = CreateFromShape(shape_with_layout); in Relayout()
|
D | xla.proto | 533 ShapeProto shape_with_layout = 2; field 560 ShapeProto shape_with_layout = 1; field
|
D | literal.h | 335 Literal Relayout(const Shape& shape_with_layout) const;
|
/external/tensorflow/tensorflow/compiler/mlir/xla/ir/ |
D | mlir_hlo_builder.h | 242 XlaOp operand, XlaOp token, const Shape& shape_with_layout,
|
D | mlir_hlo_builder.cc | 621 XlaOp operand, XlaOp token, const Shape& shape_with_layout, in OutfeedWithTokenInternal() argument
|
/external/tensorflow/tensorflow/compiler/mlir/xla/ |
D | mlir_hlo_to_hlo.cc | 1230 xla::Shape shape_with_layout = xla::ShapeUtil::MakeTupleShape(subshapes); in ExportXlaOp() local 1235 value_map[op] = xla::OutfeedWithToken(operand, token, shape_with_layout, in ExportXlaOp()
|