You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/04/19 14:57:39 UTC

[GitHub] [tvm] Lunderberg opened a new pull request, #11060: [TVMScript] Allow `val = buf[index]` without type annotation

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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] Lunderberg commented on pull request #11060: [TVMScript] Allow `val = buf[index]` without type annotation

Posted by GitBox <gi...@apache.org>.
Lunderberg commented on PR #11060:
URL: https://github.com/apache/tvm/pull/11060#issuecomment-1105277611

   Certainly!  Rebased, and CI is re-running.


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] vinx13 merged pull request #11060: [TVMScript] Allow `val = buf[index]` without type annotation

Posted by GitBox <gi...@apache.org>.
vinx13 merged PR #11060:
URL: https://github.com/apache/tvm/pull/11060


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org