leeexyz opened a new pull request #9829: URL: https://github.com/apache/tvm/pull/9829
Hi All, I encountered an issue that the comparison between the output tensor and itself. 1. `Rank-0` Tensor. Do not support comparison even if compare to the tensor itself. There is a use case that tensorize a no keep-dims reduction compute to an HW intrinsic, and it is will be failed in the [buffer bind step](https://github.com/apache/tvm/blob/9cc1df60701d6d46577d028c211bb568225fc4f1/python/tvm/te/tensor_intrin.py#L131). 2. Other Tensor. Every time when invoking `tensor.op.output(i)`, the address of the tensor is charged, it is a little bit confusing. The result is that we cannot simply use `same_as` to check a tensor. So I added the `outputs` member in `class Operation`, and recorded the output tensors on the first invocation of `Operation::output`. This is a minor change and would be the simplest way to fix it. :) What is more, I did not modify the functions `output_dtype` and `output_shape` accordingly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
