Skip to content
Snippets Groups Projects
Commit ef967759 authored by mmrahorovic's avatar mmrahorovic
Browse files

[custom_op]: add warning for incorrect FINN cycle estimation

parent 281af255
No related branches found
No related tags found
No related merge requests found
...@@ -145,6 +145,12 @@ class StreamingMaxPool_Batch(HLSCustomOp): ...@@ -145,6 +145,12 @@ class StreamingMaxPool_Batch(HLSCustomOp):
return int(exp_cycles) return int(exp_cycles)
else: else:
# TODO: adjust inaccurate formula # TODO: adjust inaccurate formula
warnings.warn(
"""Estimated latency for layer {} can be (2-3x) lower
than actual latency!""".format(
self.onnx_node.name
)
)
return int(ifm_dim[1] * (ifm_dim[1] + (ifm_dim[1] / k[1]))) return int(ifm_dim[1] * (ifm_dim[1] + (ifm_dim[1] / k[1])))
def get_instream_width(self): def get_instream_width(self):
......
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