Skip to content

Commit dd95ff0

Browse files
committed
Adapt to new AddStreams input datatype handling
1 parent c79b9e6 commit dd95ff0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/finn/benchmarking/dut/synthetic_nonlinear.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ def combine_blocks(lb, rb, ifm_dim, ch, pe):
192192
add_config["numInputVectors"] = [1, ifm_dim, ifm_dim]
193193
add_config["NumChannels"] = ch
194194
add_config["PE"] = pe
195-
add_config["inputDataType"] = lb.get_tensor_datatype(lb_output.name).name
195+
add_config["inputDataTypes"] = [
196+
lb.get_tensor_datatype(lb_output.name).name,
197+
rb.get_tensor_datatype(rb_output.name).name,
198+
]
196199

197200
nodes_lb = [node for node in lb.graph.node]
198201
nodes_rb = [node for node in rb.graph.node]

tests/fpgadataflow/test_fifosizing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def make_multi_io_modelwrapper(ch, pe, idt):
144144
backend="fpgadataflow",
145145
NumChannels=ch,
146146
PE=pe,
147-
inputDataType=idt.name,
147+
inputDataTypes=[idt.name, idt.name],
148148
inFIFODepths=[2, 2],
149149
)
150150
duplicate_node = helper.make_node(

0 commit comments

Comments
 (0)