This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix shape inference in toy tutorial
ClosedPublic

Authored by frgossen on Apr 3 2020, 5:12 AM.

Details

Summary

The implementation of shape inference in the toy tutorial did not conform to the correct algorithmic description.
The result was only correct because all operations appear to be processed in sequence.

Diff Detail

Event Timeline

frgossen created this revision.Apr 3 2020, 5:12 AM
frgossen retitled this revision from Fix shape inference in toy tutorial to [MLIR] Fix shape inference in toy tutorial.Apr 3 2020, 6:57 AM
frgossen added reviewers: rriddle, ftynse, herhut.
herhut accepted this revision.Apr 3 2020, 6:59 AM

Thanks!

mlir/examples/toy/Ch4/mlir/ShapeInferencePass.cpp
92

bit: operand -> operands. Here and below.

This revision is now accepted and ready to land.Apr 3 2020, 6:59 AM
frgossen marked an inline comment as done.Apr 3 2020, 7:31 AM
This revision was automatically updated to reflect the committed changes.