Converts a computation to HLO dot graph form.
| 117 | |
| 118 | // Converts a computation to HLO dot graph form. |
| 119 | StatusOr<std::string> GetComputationHloDotGraph( |
| 120 | const XlaComputation& computation) { |
| 121 | TF_ASSIGN_OR_RETURN(std::shared_ptr<HloModule> hlo_module, |
| 122 | GetHloModule(computation)); |
| 123 | return RenderGraph(*hlo_module->entry_computation(), /*label=*/"", |
| 124 | hlo_module->config().debug_options(), |
| 125 | RenderedGraphFormat::kDot); |
| 126 | } |
| 127 | |
| 128 | // Hashes the HLO module. |
| 129 | StatusOr<uint64> HashComputation(const XlaComputation& computation) { |
nothing calls this directly
no test coverage detected