Home
last modified time | relevance | path

Searched refs:result_layout (Results 1 – 25 of 26) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/client/
Dexecutable_build_options.cc58 const Shape* ExecutableBuildOptions::result_layout() const { in result_layout() function in xla::ExecutableBuildOptions
99 string result_layout = "nullopt"; in ToString() local
101 result_layout = ShapeUtil::HumanStringWithLayout(result_layout_); in ToString()
106 device_ordinal_, result_layout, num_replicas_); in ToString()
116 if (build_options.result_layout() != nullptr) { in CreateExecutionOptions()
118 build_options.result_layout()->ToProto(); in CreateExecutionOptions()
Dcompile_only_client.cc48 service_instance.result_layout = instance.result_layout; in CompileAheadOfTime()
Dcompile_only_client.h46 const Shape* result_layout; member
Dexecutable_build_options.h55 const Shape* result_layout() const;
/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dutils.cc197 Shape result_layout; in DetermineArgumentLayoutsFromCompileOptions() local
198 if (build_options->result_layout()) { in DetermineArgumentLayoutsFromCompileOptions()
199 result_layout = *build_options->result_layout(); in DetermineArgumentLayoutsFromCompileOptions()
201 result_layout = program_shape.result(); in DetermineArgumentLayoutsFromCompileOptions()
202 LayoutUtil::ClearLayout(&result_layout); in DetermineArgumentLayoutsFromCompileOptions()
204 TF_RETURN_IF_ERROR(assign_layouts(sharded_shapes.second, &result_layout)); in DetermineArgumentLayoutsFromCompileOptions()
205 build_options->set_result_layout(result_layout); in DetermineArgumentLayoutsFromCompileOptions()
/external/tensorflow/tensorflow/compiler/xla/service/
Dcomputation_layout.cc84 return result_layout() == other.result_layout() && in operator ==()
89 return result_layout() != other.result_layout() || in operator !=()
Dcomputation_layout.h36 explicit ComputationLayout(ShapeLayout result_layout) in ComputationLayout() argument
37 : result_layout_(std::move(result_layout)) {} in ComputationLayout()
67 const ShapeLayout& result_layout() const { return result_layout_; } in result_layout() function
Dlayout_assignment.cc557 called_computation_layout.result_layout().shape(), instruction)); in AddMandatoryConstraints()
586 if (body_layout.result_layout() != body_layout.parameter_layout(0)) { in AddMandatoryConstraints()
589 << " shape=" << body_layout.result_layout().ToString(); in AddMandatoryConstraints()
590 *body_layout.mutable_parameter_layout(0) = body_layout.result_layout(); in AddMandatoryConstraints()
631 if (!branch_computation_layout.result_layout().MatchesLayoutInShape( in AddMandatoryConstraints()
632 best_branch_computation_layout.result_layout().shape(), in AddMandatoryConstraints()
655 FindOrDie(conditional_mismatch_, computation).result_layout().shape())); in AddMandatoryConstraints()
657 const ShapeLayout& result_layout = computation_layout->result_layout(); in AddMandatoryConstraints() local
658 if (result_layout.LayoutIsSet()) { in AddMandatoryConstraints()
659 TF_RETURN_IF_ERROR(constraints->SetResultLayout(result_layout.shape())); in AddMandatoryConstraints()
[all …]
Dlocal_service.cc141 if (build_options.result_layout() != nullptr) { in CompileExecutables()
142 TF_RETURN_IF_ERROR(ValidateResultShape(*build_options.result_layout(), in CompileExecutables()
Dcompile_only_service.h45 const Shape* result_layout = nullptr; member
Dcompile_only_service.cc101 instance.result_layout->ToProto(); in CompileAheadOfTime()
Dhlo_verifier.cc1278 const ShapeLayout& result_layout = layout.result_layout(); in VerifyEntryComputationLayout() local
1281 ShapeUtil::ValidateShapeWithOptionalLayout(result_layout.shape())); in VerifyEntryComputationLayout()
1284 result_layout.shape())) { in VerifyEntryComputationLayout()
1289 ShapeUtil::HumanString(result_layout.shape())); in VerifyEntryComputationLayout()
1904 const Layout& result_layout = result_shape.layout(); in Postprocess() local
1910 TF_RET_CHECK(LayoutUtil::Equal(result_layout, operand_layout)) in Postprocess()
Dlayout_assignment_test.cc244 negate->shape(), computation_layout.result_layout().shape())); in TEST_F()
1299 if (!m->entry_computation_layout().result_layout().LayoutIsSet()) { in AssignLayoutsToComputation()
Dhlo_module.cc355 module_config.entry_computation_layout().result_layout().shape(); in CreateFromProto()
/external/tensorflow/tensorflow/compiler/mlir/hlo/tests/
Dlhlo_gpu_ops.mlir56 result_layout = [3,2,1,0],
69 result_layout = [3,2,1,0],
99 result_layout = [3,2,1,0],
131 result_layout = [3,2,1,0],
162 result_layout = [3,2,1,0],
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compile_op_support.cc58 absl::optional<const Shape> result_layout, in CreateModuleConfig() argument
88 if (result_layout.has_value()) { in CreateModuleConfig()
90 ValidateResultShape(result_layout.value(), program_shape.result())); in CreateModuleConfig()
93 result_layout.value())); in CreateModuleConfig()
137 absl::optional<const Shape> result_layout, in CreateModuleConfig() argument
140 return CreateModuleConfig(program_shape, argument_shapes, result_layout, in CreateModuleConfig()
Dtpu_compile_op_support.h98 absl::optional<const xla::Shape> result_layout,
110 absl::optional<const xla::Shape> result_layout,
Dtpu_util.cc61 instance.result_layout = &compilation_result.xla_output_shape; in BuildAotXlaComputationInstance()
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/
Dlhlo_gpu_ops_structs.td28 // of the first 2 operands of the convolution, and result_layout describes
34 StructFieldAttr<"result_layout", I64ArrayAttr>]> {
/external/tensorflow/tensorflow/stream_executor/tpu/
Dc_api_conversions.cc403 xla::ShapeLayout result_layout( in ConfigWithLayout() local
404 FromC(&se_config.entry_computation_layout.result_layout)); in ConfigWithLayout()
405 xla::ComputationLayout layout(result_layout); in ConfigWithLayout()
438 ApiConverter::ToC(layout.result_layout().shape(), in ToC()
439 &hlo_config.entry_computation_layout.result_layout); in ToC()
482 ApiConverter::Free(&c_config->entry_computation_layout.result_layout); in Free()
Dc_api_decl.h273 XLA_Shape result_layout; member
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/client/
Dtpu_client.cc845 ::xla::Shape result_layout; in Compile()
846 if (options.result_layout()) { in Compile()
847 result_layout = *options.result_layout(); in Compile()
858 result_layout = ::xla::Shape(program_shape_proto.result()); in Compile()
860 VLOG(1) << "Got result shape: " << result_layout.DebugString(); in Compile()
864 std::move(client), std::move(result_layout), tuple_arguments); in Compile()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_compiler.cc532 return options.result_layout() in BuildXlaCompilerSubmodule()
533 ? absl::optional<Shape>(*options.result_layout()) in BuildXlaCompilerSubmodule()
/external/tensorflow/tensorflow/compiler/aot/
Dcompile.cc89 instance.result_layout = &result_shape; in CompileXla()
/external/tensorflow/tensorflow/compiler/mlir/xla/tests/hlo_to_lhlo_with_xla/
Dhlo_text_to_lhlo_no_opt.hlotxt281 // CHECK-SAME: result_layout = [3, 2, 1, 0]
318 // CHECK-SAME: result_layout = [1, 3, 2, 0]
357 // CHECK-SAME: result_layout = [1, 3, 2, 0]

12