Skip to content

Commit

Permalink
[Fix] InsertFIFO transform is fixed for the case of the last node in …
Browse files Browse the repository at this point in the history
…the graph being a fork node
  • Loading branch information
Michal Danilowicz committed Sep 20, 2024
1 parent d13aa7e commit 6223abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/finn/transformation/fpgadataflow/insert_fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def apply(self, model):
fifo_input_tensor = oh.make_tensor_value_info(
model.make_new_valueinfo_name(),
n0_tensor_dtype,
n0.get_normal_output_shape(),
n0.get_normal_output_shape(out_ind),
)
graph.value_info.append(fifo_input_tensor)
model.set_tensor_datatype(fifo_input_tensor.name, dtype)
Expand All @@ -294,7 +294,7 @@ def apply(self, model):
graph.node.append(fifo_node)

# set fifo output tensor as new input tensor of second node
final_node.output[0] = fifo_input_tensor.name
final_node.output[out_ind] = fifo_input_tensor.name
else:
warnings.warn(
"""Output FIFO for %s has depth %d and won't
Expand Down

0 comments on commit 6223abe

Please sign in to comment.