No module named 'finn.core.modelwrapper' and No module named 'finn.transformation.general' #788
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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: |
Beta Was this translation helpful? Give feedback.
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
…