Skip to content

Commit d306f2e

Browse files
committed
bug
1 parent 467b2e4 commit d306f2e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

onnx_diagnostic/torch_onnx/sbs_dataclasses.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
import onnx
1212
import numpy as np
1313
import torch
14-
from ..helpers.onnx_helper import extract_subset_of_nodes, make_submodel, from_array_extended
14+
from ..helpers.onnx_helper import (
15+
extract_subset_of_nodes,
16+
make_submodel,
17+
from_array_extended,
18+
select_model_inputs_outputs,
19+
)
1520
from ..helpers.torch_helper import torch_dtype_to_onnx_dtype
1621

1722

@@ -324,8 +329,6 @@ def dump(
324329
f.write(self.get_replay_code())
325330

326331
if self.dump_prefix_model:
327-
from onnx_extended.tools.onnx_nodes import select_model_inputs_outputs
328-
329332
main_inputs = {
330333
i.name: onnx_inputs.get(i.name, torch_inputs.get(i.name, None))
331334
for i in model.graph.input

0 commit comments

Comments
 (0)