Lunderberg opened a new pull request, #11060:
URL: https://github.com/apache/tvm/pull/11060

   Other instances of `var = expr` were previously allowed without requiring a 
type annotation, by using the dtype of the expression as the dtype of `var`.  
This behavior didn't work for `buf[index]` expressions, which are internally 
represented as `BufferSlice` python objects, and only converted to `BufferLoad` 
primexprs when used as an expression.
   
   This commit adds a `dtype` property to `BufferSlice`, allowing `buf[index]` 
to be used in a let statement without a type annotation.


-- 
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]

Reply via email to