Skip to content

Is it possible use FINN to make predictions without TopK as the last layer? #1235

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

You must be logged in to vote

Hi,
if your model graph contains FINN-incompatible nodes at the beginning or end, such as remaining floating-point scale factors that could not be streamlined into a TopK node, FINN will (quietly) not implement them as part of the accelerator and expect that you perform them manually in software (as pre-/post-processing).

You could check how your intermediate .onnx model looks like after the "convert_to_hw" building step. You might see some Mul oder Add node at the end of the graph which could not be converted to a *_hls or *_rtl CustomOp.

Replies: 1 comment 2 replies

Comment options

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

@fpjentzsch
Comment options

Answer selected by bieelpaiao
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