Closed Duchstf closed 1 year ago
@Duchstf which Vitis version are you using?
@vloncar may have some guidance on whether the current unrolled conv1d latency implementation is expected to work in Vitis.
I can try to take a look.
@jmduarte I was using the 2022.2 Vivado version. I was looking at the code and was wondering the same thing about whether the conv1d latency version is expected to work there.
If not I'll be happy to contribute. This is important for both the b-tagging and the LLP model we are developing in the L1 trigger.
I tested out #815 and it fixes this error. Here are the latency/resources reports if people care:
Latency:
Resources:
The II is still a bit high compared to what I expected, but this is subjected to further optimization. I will also try out what Javier proposes in #811 for the conv layers.
The II is as expected, you need to increase the ParallelizationFactor
of the two Conv layers to bring the II down.
Quick summary
I was trying to convert a quantized Conv1D model using Vitis HLS, and was seeing this error:
Details
I'm using the current master hls4ml branch where the lastest commit is:
Steps to Reproduce
I included the
.h5
file of the model here.And a script to convert the model here.
You could run the conversion using:
I'm not really sure what's happening here ...