Error with 1D Convolution layer. #418
-
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, to work with true QuantConv1d layers, you need to apply the following additional transformation prior to streamlining: For an example how this can be done with a custom step, see our VGG10-RadioML example: You could also add it directly in the default Background: We will consider adding this (relatively new) transformation to the default build flow in the future. |
Beta Was this translation helpful? Give feedback.
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.…