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

   Previously, the error messasge from `FindPrimFuncFrame`, `FindBlockFrame`, 
and `FindIfFrame` stated that they could not find the requested frame when the 
top-most frame did not match the requested type.  This error message could be 
misinterpreted by a user as stating that the frame didn't exist at all.
   
   This commit updates the error message to distinguish between the case of a 
missing frame (e.g. `T.reads()` occurring outside of any `T.block()` frame) and 
a frame not being top-most (e.g. `T.reads()` occurring inside a `T.block()`, 
but inside an `if` conditional instead of the top of the block).


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