This will fix the case:
toyc -emit=jit test.toy def main() { var a = 1; print(a); }
Without this patch it would trigger an assertion.
Paths
| Differential D77464
[mlir][Toy][LowerToAffineLoops] Handle tensors of rank 0 ClosedPublic Authored by djtodoro on Apr 4 2020, 9:46 AM.
Details Summary This will fix the case: toyc -emit=jit test.toy def main() { var a = 1; print(a); } Without this patch it would trigger an assertion.
Diff Detail
Event TimelineHerald added subscribers: grosul1, Joonsoo, liufengdb and 9 others. · View Herald TranscriptApr 4 2020, 9:46 AM This revision is now accepted and ready to land.Apr 4 2020, 10:59 AM bondhugula added inline comments.
Comment Actions (Seems like you didn't use arc, so I'd need the info on what to put in the author field of the commit) Comment Actions I have the access, thanks. :) Closed by commit rGda5fe23e84c8: [mlir][LowerToAffineLoops] Handle tensors of rank 0 (authored by djtodoro). · Explain WhyApr 6 2020, 5:55 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 255304 mlir/examples/toy/Ch5/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch6/mlir/LowerToAffineLoops.cpp
mlir/examples/toy/Ch7/mlir/LowerToAffineLoops.cpp
|
Nit: !valueShape.empty() if you prefer.