Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions nn_meter/ir_converter/onnx_converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ def convert(self):
sliced_tensors = set()
selected_slice = set()
for node in self.graph.node:
outbounds = []
inbounds = []

if node.op_type == SLICE_TYPE:
tensor = node.input[0]
if tensor in sliced_tensors:
continue
else:
sliced_tensors.add(tensor)
selected_slice.add(node.name)
selected_slice.add(node.name)

for node in self.graph.node:
outbounds = []
inbounds = []
if node.op_type == SLICE_TYPE and node.name not in selected_slice:
continue

Expand Down