This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tosa] Handle tosa.resize nearest rounding correctly
ClosedPublic

Authored by rsuderman on Dec 1 2022, 5:52 PM.

Details

Summary

Rounding of tosa.resize did not handle rounding to the nearest pixel correctly.
Rather than dividing the scale by 2 we should double the partial pixel to
guarantee we include a check on the lowest bit.

Diff Detail

Event Timeline

rsuderman created this revision.Dec 1 2022, 5:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 5:52 PM
rsuderman requested review of this revision.Dec 1 2022, 5:52 PM
rsuderman updated this revision to Diff 479494.Dec 1 2022, 6:12 PM

include DivI fix

NatashaKnk accepted this revision.Dec 2 2022, 10:15 AM
This revision is now accepted and ready to land.Dec 2 2022, 10:15 AM