Skip to content

Error with 1D Convolution layer. #418

Answered by fpjentzsch
satishkumar538 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

to work with true QuantConv1d layers, you need to apply the following additional transformation prior to streamlining:
https://github.com/Xilinx/finn-base/blob/dev/src/finn/transformation/change_3d_tensors_to_4d.py

For an example how this can be done with a custom step, see our VGG10-RadioML example:
https://github.com/Xilinx/finn-examples/blob/main/build/vgg10-radioml/build.py
https://github.com/Xilinx/finn-examples/blob/main/build/vgg10-radioml/custom_steps.py

You could also add it directly in the default step_streamline:
https://github.com/Xilinx/finn/blob/dev/src/finn/builder/build_dataflow_steps.py#L245

Background:
Note that FINN still uses 4D (NHWC) tensors and 2D attributes (e.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by satishkumar538
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