masahi commented on PR #11324:
URL: https://github.com/apache/tvm/pull/11324#issuecomment-1129615626

   @Hzfengsy Thanks for the suggestion. I wrapped the func call with `try / 
catch`, and added error report dump via `report_error`. 
   
   I couldn't make a good test case, but this is an example of an err msg when 
a users try a funky function call:
   ```
   error: Error occured when invoking the function sqrt: 
   loop of ufunc does not support argument 0 of type Var which has no callable 
sqrt method
    --> test_tvmscript_syntax_sugar.py:344:19
        |  
    344 |              ind = sqrt(i)
        |                    ^^^^^^^
   note: run with `TVM_BACKTRACE=1` environment variable to display a backtrace.
   ``` 


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