This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Fix tosa::Select to linalg::generic indexingMaps bug
ClosedPublic

Authored by AmosLewis on Oct 5 2022, 7:43 PM.

Details

Summary

The tosa to linalg generic ops indexingMaps rank use is wrong.

	 Find this bug in gpt2 pytorch model lowering to tosa.
	 issue link is here https://github.com/llvm/llvm-project/issues/58154

Diff Detail

Event Timeline

AmosLewis created this revision.Oct 5 2022, 7:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 7:43 PM
AmosLewis requested review of this revision.Oct 5 2022, 7:43 PM
rsuderman retitled this revision from [BUG FIX] Fix tosa::Select to linalg::generic indexingMaps bug to [mlir][tosa] Fix tosa::Select to linalg::generic indexingMaps bug.Oct 6 2022, 9:20 AM

Could you include a test case that demonstrates the failure?

AmosLewis updated this revision to Diff 465840.Oct 6 2022, 1:00 PM

[mlir][tosa] Fix tosa::Select to linalg::generic indexingMaps bug

Could you include a test case that demonstrates the failure?

Done

jpienaar accepted this revision.Oct 10 2022, 10:42 AM
jpienaar added a subscriber: jpienaar.

LG, we can simplify the test a bit. I'll do that during landing.

This revision is now accepted and ready to land.Oct 10 2022, 10:42 AM