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

Function translateConfig

flow-debugger/debugger-ui/src/parser.js:252–260  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

250}
251
252function translateConfig(config) {
253 return {
254 main: config.main,
255 nodes: list2map(config.nodes) || {},
256 graphs:
257 list2map(config.graphs.map((graph) => translateGraph(graph))) || {},
258 counter: 1,
259 };
260}
261
262export const parse = (config) => {
263 let config_translated = translateConfig(config);

Callers 1

parseFunction · 0.85

Calls 2

list2mapFunction · 0.85
translateGraphFunction · 0.85

Tested by

no test coverage detected