llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.12k stars 11.1k forks source link

[mlir][tensor] feature request: `tensor.print` op #84206

Open pingshiyu opened 4 months ago

pingshiyu commented 4 months ago

Would love a way to print out tensors, in a similar way to vector.print.

Seems like the alternative (relatively simple way) would be to first lower to memref (after talking to @makslevental), then print it out there - which is not super ideal.

For me, it would help a lot with debugging and validation, I imagine it'd be quite useful for others too!

Jobhdez commented 4 months ago

can someone assign this to me please

joker-eph commented 4 months ago

Can't assign to non member of the project (this is a GitHub limitation). But please take it :)