Skip to content

Commit

Permalink
revise bug for concat with quantize
Browse files Browse the repository at this point in the history
  • Loading branch information
guodongliang committed Jan 18, 2025
1 parent b530435 commit d71aacc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Nncase.Passes/Rules/Neutral/CombineQuantize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ public sealed partial class CombineQuantizeConcat : RewriteRule<Pattern>
// see UnitTestCombineQuantize.TestCombineQuantizeConcatNegative
foreach (var e in tupleInputs)
{
if (e.CheckedShape.Any(s => s.Value == 0))
{
return null;
}

if (userAnalysis[e].Count() > 1)
{
foreach (var user in userAnalysis[e])
Expand Down

0 comments on commit d71aacc

Please sign in to comment.