Skip to content

fix(mlir): adding a patch to fix legalization failiure due to dynamic shapes in SD encoder networks

Deeptanshu Sekhri requested to merge bugfix/small-concat-patch into main

Changes:

  1. Fold 'small' constant 1D concat operations

    The commit improves the concat folder to cover operations consisting of all constant inputs where the number of output values does not exceed 6. Keeping the folder restricted to small inputs avoids a large folder runtime or increased memory requirements.

    This folder is useful in the context of legalizing dynamic models where the input shapes are resolved to static directly before legalization. In this context, constant shape operations are used over tensors of num elements <= 6 (tosa_level_8k MAX_RANK).

  2. Add folder for multiply like reduce_prod operation

    This commit uses mulBinaryFolder for reduce_prod operations that have a constant 1D input of two values.

Signed-off-by: Luke Hutton luke.hutton@arm.com, Deeptanshu Sekhri deeptanshu.sekhri@arm.com

Merge request reports

Loading