Converts a computation to textual HLO form.
| 107 | |
| 108 | // Converts a computation to textual HLO form. |
| 109 | StatusOr<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. |
| 119 | StatusOr<std::string> GetComputationHloDotGraph( |
nothing calls this directly
no test coverage detected