<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/84206>84206</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [mlir][tensor] feature request: `tensor.print` op
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          pingshiyu
      </td>
    </tr>
</table>

<pre>
    Would love a way to print out `tensor`s, 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!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxMkkGPqzgQhH-NubQGOcZAOHCY2SjSnvew5yY00DsGM3Y7Uf79ykzem3cB2-qq_koqjJHnjahX9YeqLwUmWXzod97muPAzFYMfn_2_PrkRnL8TIDzwCeJhD7wJ-CSgGi20RR9Uo6MyfwFvgBB5ZYfh17hq9J1u4kN5CFWjS1D6ovT79_cfojWC408CWQjQCYUNhe8EypwDuePsntl3d5RtlengcZANlFdMHKKA8w8K-brSGmjKapwkP6H75G0-YKxe8TM6utMm6JTpMrYstL1i8XcyWSgQvMFj4dsCHGHzAjHtFIBHQlf-meDqA6x05JcX10JuBwTnBR4sC4w0pHnOELiNcEfHIwr7LYv-Bl5x5o2ARZn2CPWVWAhSpCk5mHwAn4kiiPfKnIqxr8au6rCg_tTqrrXNubbF0reVbtqpta1ub2OF1dRi14yjRovaNpYK7o02Vle6ObVW17bsJmzPqM3JkD01Q6usphXZlc7d19KHueAYE_Vna3RTOBzIxaMyxqyOgzImlyf0efxtSHNUVjuOEn8MhMUdNTsE9UXVH6_W1BeYCCUFgkBfiaKo6v2nVb8LA34vUnD9IrJHVb0rc1XmOrMsaShvflXmmre9fm978P_RTZS5HuxRmeuB_38AAAD___xJ99g">