MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / translateGraph

Function translateGraph

flow-debugger/debugger-ui/src/parser.js:242–250  ·  view source on GitHub ↗
(graph)

Source from the content-addressed store, hash-verified

240}
241
242function translateGraph(graph) {
243 return {
244 name: graph.name,
245 nodes: list2map(graph.nodes) || {},
246 inputs: list2map(graph.inputs) || {},
247 outputs: list2map(graph.outputs) || {},
248 connections: graph.connections || [],
249 };
250}
251
252function translateConfig(config) {
253 return {

Callers 1

translateConfigFunction · 0.85

Calls 1

list2mapFunction · 0.85

Tested by

no test coverage detected