Home
last modified time | relevance | path

Searched refs:ComputationLayout (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dcomputation_layout.cc27 ComputationLayout::ComputationLayout(const ProgramShape& program_shape, in ComputationLayout() function in xla::ComputationLayout
40 void ComputationLayout::SetToDefaultLayout() { in SetToDefaultLayout()
47 void ComputationLayout::SetToDefaultLayoutIfEmpty() { in SetToDefaultLayoutIfEmpty()
58 bool ComputationLayout::LayoutIsSet() const { in LayoutIsSet()
64 string ComputationLayout::ToString() const { in ToString()
73 ProgramShape ComputationLayout::ComputeProgramShape() const { in ComputeProgramShape()
83 bool ComputationLayout::operator==(const ComputationLayout& other) const { in operator ==()
88 bool ComputationLayout::operator!=(const ComputationLayout& other) const { in operator !=()
93 uint64 ComputationLayout::Hash() const { in Hash()
Dcomputation_layout.h33 class ComputationLayout {
36 explicit ComputationLayout(ShapeLayout result_layout) in ComputationLayout() function
42 explicit ComputationLayout(const ProgramShape& program_shape,
92 bool operator==(const ComputationLayout& other) const;
93 bool operator!=(const ComputationLayout& other) const;
Dhlo_module_config.cc34 ComputationLayout(program_shape, ignore_layouts)) {} in HloModuleConfig()
36 HloModuleConfig::HloModuleConfig(ComputationLayout entry_computation_layout) in HloModuleConfig()
41 entry_computation_layout_ = ComputationLayout(program_shape); in SetDefaultComputationLayout()
46 entry_computation_layout_ = ComputationLayout(program_shape, in SetComputationLayoutIfExists()
Dlayout_assignment_test.cc54 void AssignLayouts(HloModule* m, ComputationLayout* entry_computation_layout, in AssignLayouts()
90 TEST_F(LayoutAssignmentTest, ComputationLayout) { in TEST_F() argument
111 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
146 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
193 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
234 ComputationLayout computation_layout( in TEST_F()
272 ComputationLayout computation_layout( in TEST_F()
307 ComputationLayout computation_layout( in TEST_F()
371 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
412 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
[all …]
Dlayout_assignment.h304 ComputationLayout* entry_computation_layout,
388 Status AddMandatoryConstraints(const ComputationLayout* computation_layout,
407 Status RunOnComputation(ComputationLayout* computation_layout,
448 ComputationLayout* computation_layout);
451 ComputationLayout* entry_computation_layout_;
455 ComputationLayout saved_entry_computation_layout_;
513 std::map<HloComputation*, ComputationLayout> computation_layouts_;
516 std::map<HloComputation*, ComputationLayout> conditional_mismatch_;
Dhlo_module_config.h77 explicit HloModuleConfig(ComputationLayout entry_computation_layout);
95 const ComputationLayout& entry_computation_layout() const { in entry_computation_layout()
102 ComputationLayout* mutable_entry_computation_layout() { in mutable_entry_computation_layout()
245 absl::optional<ComputationLayout> entry_computation_layout_;
Dhlo_module.h139 ComputationLayout compute_computation_layout() const { in compute_computation_layout()
140 return ComputationLayout(entry_computation()->ComputeProgramShape(), in compute_computation_layout()
144 ComputationLayout* mutable_entry_computation_layout() { in mutable_entry_computation_layout()
148 const ComputationLayout& entry_computation_layout() const { in entry_computation_layout()
Dlayout_assignment.cc445 const ComputationLayout* computation_layout, in AddMandatoryConstraints()
554 const ComputationLayout& called_computation_layout = in AddMandatoryConstraints()
572 ComputationLayout& body_layout = FindOrDie(computation_layouts_, body); in AddMandatoryConstraints()
573 ComputationLayout& condition_layout = in AddMandatoryConstraints()
622 ComputationLayout& best_branch_computation_layout = in AddMandatoryConstraints()
629 ComputationLayout& branch_computation_layout = in AddMandatoryConstraints()
675 const ComputationLayout& computation_layout) { in CheckCallLayout()
709 const ComputationLayout& condition_computation_layout, in CheckWhileLayout()
710 const ComputationLayout& body_computation_layout) { in CheckWhileLayout()
725 absl::Span<const ComputationLayout> branch_computation_layouts) { in CheckConditionalLayout()
[all …]
Dhlo_module_util.cc50 ComputationLayout* computation_layout = in CreateModuleConfig()
Dhlo_module.cc470 ComputationLayout* entry_layout = in CreateModuleConfigFromShape()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_layout_assignment_test.cc70 ComputationLayout computation_layout( in TEST_F()
157 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
226 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
307 ComputationLayout computation_layout( in TEST_F()
355 ComputationLayout computation_layout( in TEST_F()
393 ComputationLayout computation_layout( in TEST_F()
420 ComputationLayout computation_layout( in TEST_F()
Dgpu_layout_assignment.h32 explicit GpuLayoutAssignment(ComputationLayout* entry_computation_layout, in GpuLayoutAssignment()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_layout_assignment_test.cc52 ComputationLayout* entry_computation_layout) { in AssignLayouts()
79 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
120 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
164 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
198 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
238 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
313 ComputationLayout computation_layout(computation->ComputeProgramShape()); in RunDotOutputFusion()
458 ComputationLayout computation_layout(computation->ComputeProgramShape()); in TEST_F()
Dcpu_layout_assignment.h32 ComputationLayout* entry_computation_layout, in CpuLayoutAssignment()
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dxrt_execute_op.cc78 const xla::ComputationLayout& computation_layout) { in GetDynamicInputInfo()
92 const xla::ComputationLayout& computation_layout = in GetInputTuples()
302 const xla::ComputationLayout& computation_layout = in RunExecutable()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compile_op_support.cc31 using ::xla::ComputationLayout;
65 ComputationLayout* computation_layout = in CreateModuleConfig()
/external/tensorflow/tensorflow/core/tpu/
Dtpu_execute.cc452 xla::ComputationLayout computation_layout( in TPUExecute()
/external/tensorflow/tensorflow/compiler/xla/client/
Dlocal_client.cc121 const ComputationLayout& computation_layout = in RunHelper()
/external/tensorflow/tensorflow/stream_executor/tpu/
Dc_api_conversions.cc405 xla::ComputationLayout layout(result_layout); in ConfigWithLayout()
/external/tensorflow/tensorflow/compiler/xla/service/spmd/
Dspmd_partitioner.cc3712 ComputationLayout(new_program_shape, /*ignore_layouts=*/false); in Run()