MCPcopy Index your code
hub / github.com/lutzroeder/netron / _create_graph_module_for_export

Method _create_graph_module_for_export

source/python.js:19161–19170  ·  view source on GitHub ↗
(root, graph)

Source from the content-addressed store, hash-verified

19159 this._constants = tensor_constants || constants || {};
19160 }
19161 _create_graph_module_for_export(root, graph) {
19162 let gm = null;
19163 try {
19164 gm = new torch.fx.GraphModule(root, graph);
19165 } catch {
19166 const gm = new torch.fx.GraphModule(root, torch.fx.Graph());
19167 gm._graph = graph;
19168 }
19169 return gm;
19170 }
19171 get graph_module() {
19172 return this._graph_module;
19173 }

Callers 3

constructorMethod · 0.80
deserializeMethod · 0.80
deserialize_inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected