[mlir][Toy] Remove unnecessary transpose from chapter 1 example
authorAndrey Portnoy <aportnoy@fastmail.com>
Tue, 6 Jun 2023 18:19:53 +0000 (11:19 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 6 Jun 2023 18:23:35 +0000 (11:23 -0700)
commit444bb1f1bbbd7450fd30acc4ac1091fe916a740f
treebe235cdc165a83f8c7f96d82f0622792aa8bc9a5
parentf007bcbc3c8f3bcecdf0b4c0106b384aa09f794b
[mlir][Toy] Remove unnecessary transpose from chapter 1 example

The call to 'multiply_transpose' in the initialization of the variable 'f' was
intended to have a shape mismatch. However the variable 'a' has shape <2, 3> and
the variable 'c' has shape <3, 2>, so the arguments 'transpose(a)' and 'c' have
in fact compatible shapes (<3, 2> both), the opposite of what is wanted here.
This commit removes the transpose so that arguments 'a' and 'c' have
incompatible shapes <2, 3> and <3, 2>, respectively.

Reviewed By: mehdi_amini

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