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

Function GetHloModule

tensorflow/compiler/xla/python/xla.cc:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97StatusOr<std::shared_ptr<HloModule>> GetHloModule(
98 const XlaComputation& computation) {
99 TF_ASSIGN_OR_RETURN(const HloModuleConfig module_config,
100 HloModule::CreateModuleConfigFromProto(
101 computation.proto(), GetDebugOptionsFromFlags()));
102 TF_ASSIGN_OR_RETURN(
103 std::unique_ptr<HloModule> module,
104 HloModule::CreateFromProto(computation.proto(), module_config));
105 return std::shared_ptr<HloModule>(std::move(module));
106}
107
108// Converts a computation to textual HLO form.
109StatusOr<std::string> GetComputationHloText(const XlaComputation& computation) {

Callers 4

GetComputationHloTextFunction · 0.85
HashComputationFunction · 0.85
XLA_TEST_FFunction · 0.85

Calls 2

protoMethod · 0.80
TF_ASSIGN_OR_RETURNFunction · 0.50

Tested by 1

XLA_TEST_FFunction · 0.68