(root, graph)
| 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 | } |
no outgoing calls
no test coverage detected