[MLIR] Fix tensor shapes in Toy chapter 1
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 23 Jan 2023 14:01:08 +0000 (14:01 +0000)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 27 Jan 2023 10:09:25 +0000 (10:09 +0000)
commitbfedf169f4261a0fbe097f4a717d375dda2503c4
treee16ba8651934a2c6ce23eeac6239d893c841a309
parent67760d7e315ff90198bccfd4b0a3934f7a30e6ce
[MLIR] Fix tensor shapes in Toy chapter 1

In Toy tutorial chapter 1, multiply_transpose() is called with b<2, 3>
and c<3, 2> when both parameters should have the same shape. This commit
fixes this by instead using c and d as parameters and fix a comment typo
where c and d are mentioned to have shape <2, 2> when they actually have
shape <3, 2>.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D142622
mlir/docs/Tutorials/Toy/Ch-1.md
mlir/test/Examples/Toy/Ch1/ast.toy