MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ReplaceEntryComputation

Method ReplaceEntryComputation

tensorflow/compiler/xla/service/hlo_module.cc:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void HloModule::ReplaceEntryComputation(HloComputation* entry_computation) {
56 entry_computation_ = entry_computation;
57 config_.SetDefaultComputationLayout(
58 entry_computation_->ComputeProgramShape());
59 input_output_alias_config_ = HloInputOutputAliasConfig(
60 entry_computation_->root_instruction()->shape());
61}
62
63HloComputation* HloModule::AddComputationInternal(
64 std::unique_ptr<HloComputation> computation, bool is_entry,

Callers

nothing calls this directly

Calls 5

root_instructionMethod · 0.80
ComputeProgramShapeMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected