This is an archive of the discontinued LLVM Phabricator instance.

[linalg] Fixed tosa-to-linalg-named for tosa.conv2d i8 with i8 bias
ClosedPublic

Authored by sjw36 on Mar 9 2023, 4:31 PM.

Diff Detail

Event Timeline

sjw36 created this revision.Mar 9 2023, 4:31 PM
Herald added a project: Restricted Project. · View Herald Transcript
sjw36 requested review of this revision.Mar 9 2023, 4:31 PM
sjw36 added a comment.Mar 14 2023, 7:13 AM

@hanchung any feedback on this.

hanchung edited reviewers, added: rsuderman; removed: hanchung.Mar 14 2023, 1:24 PM

I think Rob has more context about it.

rsuderman requested changes to this revision.Mar 15 2023, 3:00 PM
rsuderman added inline comments.
mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamed.cpp
66

I wouldn't call this makeIntBiasAdd as its technically more general than bias. I would just name something like linalgIntBroadcastExtSIAdd. That way its clear its just performing an ExtSI and AddI.

67

You should be able to just using the conv.getType() instead of passing in resultTy

70

You might as well just return here rather than saving to result and returning result.

This revision now requires changes to proceed.Mar 15 2023, 3:00 PM
sjw36 updated this revision to Diff 508126.Mar 24 2023, 9:11 AM
sjw36 marked 3 inline comments as done.
  • cleanup changes for review comments
sjw36 added a comment.Mar 24 2023, 9:12 AM

Thanks @rsuderman. Updated.

rsuderman accepted this revision.Mar 24 2023, 12:21 PM
This revision is now accepted and ready to land.Mar 24 2023, 12:21 PM