Skip to content

No module named 'finn.core.modelwrapper' and No module named 'finn.transformation.general' #788

Answered by sefaburakokcu
Ajfil asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Ajfil,

Thank you for your interest. In https://github.com/sefaburakokcu/finn-quantized-yolo, we used Finn v0.7 for transformations. However, transformation and modelwrapper modules are being exported from qonnx instead of finn in new Finn versions(v0.9).

You can replace finn by qonnx if you are using Finn v0.9. For example:
from qonnx.core.modelwrapper import ModelWrapper
from qonnx.transformation.infer_data_layouts import InferDataLayouts
from qonnx.transformation.infer_datatypes import InferDataTypes
from qonnx.transformation.infer_shapes import InferShapes
from qonnx.transformation.insert_topk import InsertTopK
from qonnx.transformation.lower_convs_to_matmul import LowerConvsToMatMul

Replies: 1 comment 2 replies

Comment options

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

@Ajfil
Comment options

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