Skip to content

Long HLS synthesis time for FC layer with the folding of 1 #557

Answered by mmrahorovic
haoxi1999 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, great to hear you're getting your hands dirty with FINN :)

I could try my best to help you out with this. I suspect from the log file that you are using the MVAU with 'const' memory mode? Since the weights are binarized and since the weight matrix is not that long, I'm not entirely sure whether the following is applicable. But, it has been observed before that synthesizing the MVAU with the weights 'baked-in' results in long synthesis time (and consumes a lot of memory). See this page for more details: https://finn.readthedocs.io/en/latest/internals.html#streamingfclayer-mem-mode

You could try to set the mem_mode to decoupled for the MVAU:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@haoxi1999
Comment options

@mmrahorovic
Comment options

Answer selected by haoxi1999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants