Skip to content
Snippets Groups Projects
Commit 12597316 authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Driver] use compatible data for throughput testing

parent ba7ebdf1
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,8 @@ from finn.util.data_packing import ( ...@@ -37,6 +37,8 @@ from finn.util.data_packing import (
packed_bytearray_to_finnpy, packed_bytearray_to_finnpy,
) )
from finn.util.basic import gen_finn_dt_tensor
# Driver base class for FINN-generated dataflow accelerators. # Driver base class for FINN-generated dataflow accelerators.
# The particulars of the generated accelerator are specified via the # The particulars of the generated accelerator are specified via the
# io_shape_dict (generated by the MakePYNQDriver transformation). # io_shape_dict (generated by the MakePYNQDriver transformation).
...@@ -344,7 +346,7 @@ class FINNExampleOverlay(Overlay): ...@@ -344,7 +346,7 @@ class FINNExampleOverlay(Overlay):
res["fclk[mhz]"] = self.clock_dict["clock0"]["frequency"] res["fclk[mhz]"] = self.clock_dict["clock0"]["frequency"]
res["batch_size"] = self.batch_size res["batch_size"] = self.batch_size
# also benchmark driver-related overheads # also benchmark driver-related overheads
input_npy = np.zeros(self.ishape_normal, dtype=self.idt.to_numpy_dt()) input_npy = gen_finn_dt_tensor(self.idt, self.ishape_normal)
start = time.time() start = time.time()
ibuf_folded = self.fold_input(input_npy) ibuf_folded = self.fold_input(input_npy)
end = time.time() end = time.time()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment