Skip to content

Commit

Permalink
Merge const range of marker only
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnycase committed Jan 6, 2025
1 parent 8ad4680 commit d0bab63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nncase.Passes/Rules/ShapeBucket/MergeCallToFusion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ private static Expr[] MakeNewPrevCalls(Call[] inputsShouldBeMerge, Expr[] prevOu
}

Expr canditateVar = newVar.First();
if (x is Marker mm)
if (x is Marker mm && mm.Attribute is TensorConst) // Const range of marker

Check warning on line 459 in src/Nncase.Passes/Rules/ShapeBucket/MergeCallToFusion.cs

View workflow job for this annotation

GitHub Actions / build-aarch64-macos

Check warning on line 459 in src/Nncase.Passes/Rules/ShapeBucket/MergeCallToFusion.cs

View workflow job for this annotation

GitHub Actions / build-x86_64-linux

Check warning on line 459 in src/Nncase.Passes/Rules/ShapeBucket/MergeCallToFusion.cs

View workflow job for this annotation

GitHub Actions / build-x86_64-windows

Check warning on line 459 in src/Nncase.Passes/Rules/ShapeBucket/MergeCallToFusion.cs

View workflow job for this annotation

GitHub Actions / build-x86_64-windows

Check warning on line 459 in src/Nncase.Passes/Rules/ShapeBucket/MergeCallToFusion.cs

View workflow job for this annotation

GitHub Actions / build-x86_64-linux

{
canditateVar = mm.With(target: canditateVar);
}
Expand Down

0 comments on commit d0bab63

Please sign in to comment.