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 16, 2024
1 parent f833df2 commit 7473569
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 @@ -263,7 +263,7 @@ def apply(self, model):
fifo_input_tensor = oh.make_tensor_value_info(
model.make_new_valueinfo_name(),
TensorProto.FLOAT,
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 @@ -289,7 +289,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 7473569

Please sign in to comment.