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

Function GetComputationHloText

tensorflow/compiler/xla/python/xla.cc:109–116  ·  view source on GitHub ↗

Converts a computation to textual HLO form.

Source from the content-addressed store, hash-verified

107
108// Converts a computation to textual HLO form.
109StatusOr<std::string> GetComputationHloText(const XlaComputation& computation) {
110 TF_ASSIGN_OR_RETURN(std::shared_ptr<HloModule> hlo_module,
111 GetHloModule(computation));
112 HloPrintOptions options;
113 options = HloPrintOptions::ShortParsable();
114 options.set_print_large_constants(false);
115 return hlo_module->ToString(options);
116}
117
118// Converts a computation to HLO dot graph form.
119StatusOr<std::string> GetComputationHloDotGraph(

Callers

nothing calls this directly

Calls 3

GetHloModuleFunction · 0.85
TF_ASSIGN_OR_RETURNFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected