Skip to content

Extra InferDataLayouts in ConvertQONNXtoFINN breaks QONNX MobileNetV1 #86

@fpjentzsch

Description

@fpjentzsch

The data layout inference I added here (3e59fd3) to fix the cnv data layout issue seems to break the MobileNetV1 flow based on a QONNX input model (the old FINN-ONNX version in the regression test suite is fine) that is exercised in test_end2end_mobilenet_tidy_and_merge_with_preproc:

  assert (
        thresholds.shape[0] == 1 or thresholds.shape[0] == num_output_channels
    ), """Quant node cannot be converted to MultiThreshold because only
        per tensor or per channel quantization supported."""

E AssertionError: Quant node cannot be converted to MultiThreshold because only
E per tensor or per channel quantization supported.

The threshold shape is (64, 15) and num_output_channels is 111, which looks like the spatial dimension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions