We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 467b2e4 commit d306f2eCopy full SHA for d306f2e
onnx_diagnostic/torch_onnx/sbs_dataclasses.py
@@ -11,7 +11,12 @@
11
import onnx
12
import numpy as np
13
import torch
14
-from ..helpers.onnx_helper import extract_subset_of_nodes, make_submodel, from_array_extended
+from ..helpers.onnx_helper import (
15
+ extract_subset_of_nodes,
16
+ make_submodel,
17
+ from_array_extended,
18
+ select_model_inputs_outputs,
19
+)
20
from ..helpers.torch_helper import torch_dtype_to_onnx_dtype
21
22
@@ -324,8 +329,6 @@ def dump(
324
329
f.write(self.get_replay_code())
325
330
326
331
if self.dump_prefix_model:
327
- from onnx_extended.tools.onnx_nodes import select_model_inputs_outputs
328
-
332
main_inputs = {
333
i.name: onnx_inputs.get(i.name, torch_inputs.get(i.name, None))
334
for i in model.graph.input
0 commit comments