Uh oh!
There was an error while loading. Please reload this page.
[Codegen] Support broadcast op with symbolic shape - #3389
Conversation
tqchen
commented
Jun 18, 2019
Thanks for the RFC, I like the idea. Sorry that I didn't get enough time to comment specifically about the behavior, can you please open an RFC issue? So we can discuss it a bit more. The things to be improved are
|
junrushao
commented
Jun 18, 2019
I do think it is proper to introduce |
junrushao
commented
Jun 26, 2019
@were Could you review this PR? |
were
commented
Jun 28, 2019
LGTM, too. |
yzhliu
commented
Jul 1, 2019
@tqchen modified per suggestion. |
| auto_broadcast buffer allows one to implement broadcast computation | ||
| without considering whether dimension size equals to one. | ||
| TVM will insert `strides[i] = shape[i] == 1 ? 0 : strides[i]` during arg binding. | ||
| See src/pass/arg_binder.cc for reference. |
There was a problem hiding this comment.
Let us avoid refer to c++ code in the python side, would be great if python doc can stand by itself
yzhliu
commented
Jul 2, 2019
Thanks @tqchen@junrushao1994@were for review. |
* [Codegen] Support broadcast op with symbolic shape * fix case where last dim = 1 * use enum; simplify stride calculation; improve doc * fix lint * improve py doc
* [Codegen] Support broadcast op with symbolic shape * fix case where last dim = 1 * use enum; simplify stride calculation; improve doc * fix lint * improve py doc
* [Codegen] Support broadcast op with symbolic shape * fix case where last dim = 1 * use enum; simplify stride calculation; improve doc * fix lint * improve py doc
Per https://discuss.tvm.ai/t/rfc-codegen-broadcast-ops-with-symbolic-shape/2908
@tqchen@reminisce@junrushao1994 Please review.