tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[TOPI][Hexagon] Implement quantized avgpool

Open jverma-quic opened this issue 3 years ago • 1 comments

Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

cc @mehrdadh

jverma-quic avatar Aug 08 '22 19:08 jverma-quic

cc: @csullivan; @Lunderberg; @kparzysz-quic, @cconvey

jverma-quic avatar Aug 08 '22 19:08 jverma-quic

Please let me know if there are any additional comments. If not, can someone approve and merge it for me please?

jverma-quic avatar Aug 15 '22 22:08 jverma-quic

cc @cconvey @mehrdadh, please take a relook of the updated files.

TejashShah avatar Aug 15 '22 22:08 TejashShah

@jverma-quic : Could you please click the "Ready for re-review" link next to my name? I think that might be necessary to separate my old vs. new review comments.

cconvey avatar Aug 16 '22 13:08 cconvey

This PR introduces several TOPI-related functions (qnn_avg_pool2d_compute and qnn_avg_pool2d_schedule). Does this PR make these functions available for compile-time consideration by TOPI?

I'm not very familiar with the mechanisms TVM uses for this, so apologies if I'm just missing how it happens.

cconvey avatar Aug 18 '22 13:08 cconvey

This PR introduces several TOPI-related functions (qnn_avg_pool2d_compute and qnn_avg_pool2d_schedule). Does this PR make these functions available for compile-time consideration by TOPI?

I'm not very familiar with the mechanisms TVM uses for this, so apologies if I'm just missing how it happens.

That's correct. The PR does introduce several TOPI related functions. However, since they require inputs and outputs to be in 2d discontiguous buffer, they aren't yet available for use by OpStrategy. One of the issues here is that Relay is unable to handle complex layout needed for these discontiguous buffers and requires some additional work.

jverma-quic avatar Aug 19 '22 15:08 jverma-quic

Thanks @jverma-quic , the PR is looking really good. I left one small suggestion, feel free to ignore it.

Once you're satisifed, I'm happy with getting this merged. You may want to ping @mehrdadh for that official review; I think he was waiting for my review to finish.

Thanks @cconvey! I really appreciate you taking time to review this PR and your detailed comments.

jverma-quic avatar Aug 19 '22 19:08 jverma-quic

@cconvey, @mehrdadh, @kparzysz-quic, @TejashShah : I'm waiting to merge this PR. Unless there are additional comments, can someone approve and merge it for me please? Thanks!

jverma-quic avatar Aug 24 '22 15:08 jverma-quic

@jverma-quic sorry for the delay, looking at the PR now

mehrdadh avatar Aug 24 '22 18:08 mehrdadh

@jverma-quic PR is merged! Thanks for your contribution! Moving forward please use a meaningful PR description.

@cconvey thanks for the review!

mehrdadh avatar Aug 24 '22 18:08 mehrdadh