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

Function RenderGraph

tensorflow/compiler/xla/service/hlo_graph_dumper.cc:1599–1615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1597}
1598
1599StatusOr<string> RenderGraph(const HloComputation& computation,
1600 absl::string_view label,
1601 const DebugOptions& debug_options,
1602 RenderedGraphFormat format,
1603 const HloExecutionProfile* hlo_execution_profile,
1604 bool show_backend_config) {
1605 tensorflow::mutex_lock lock(url_renderer_mu);
1606 if (format == RenderedGraphFormat::kUrl && url_renderer == nullptr) {
1607 return Unavailable("Can't render as URL; no URL renderer was registered.");
1608 }
1609
1610 string rendered_dot =
1611 HloDotDumper(&computation, label, debug_options, show_backend_config,
1612 hlo_execution_profile, NodeFilter())
1613 .Dump();
1614 return WrapDotInFormat(rendered_dot, format);
1615}
1616
1617StatusOr<string> RenderNeighborhoodAround(
1618 const HloInstruction& node, int radius, RenderedGraphFormat format,

Callers 4

DoPlotCommandFunction · 0.85
PYBIND11_MODULEFunction · 0.85
DumpHloModuleImplFunction · 0.85

Calls 4

UnavailableFunction · 0.85
HloDotDumperClass · 0.85
NodeFilterClass · 0.85
DumpMethod · 0.45

Tested by

no test coverage detected