Skip to content

Commit

Permalink
revert a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
bogunowicz@arrival.com committed Jul 14, 2023
1 parent 6fcd3f2 commit de8ebf7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ def create_cache(
name=f"concat.{cache_input_name_concat}",
)

for node in model.graph.node:
for input_idx, input_id in enumerate(node.input):
if input_id == pre_cache_input_id and node.name != concat_node.name:
node.input[input_idx] = cache_output_name_concat

graph.add_node(concat_node)

return concat_node, cache_input_info, cache_output_info
Expand Down

0 comments on commit de8ebf7

Please sign in to comment.