You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Lunderberg (via GitHub)" <gi...@apache.org> on 2024/02/08 13:50:24 UTC

Re: [I] [Bug] ValueError: Expect value to be constant int [tvm]

Lunderberg commented on issue #16519:
URL: https://github.com/apache/tvm/issues/16519#issuecomment-1934164052

   Looks like this is model dependent, and would occur when there's a dynamic 
   
   * Add more information to the error raised.  This could be done by updating the `raise RuntimeError` to have the message `f"Expect value to be constant int, but expression {exp} was of type {type(exp)}"`.  This would help identify which dynamic parameter in the model is causing the issue.
   
   * Try using `tvm.dlight` for scheduling.  This is a set of schedules for dynamic-shaped inputs.  If your model cannot avoid having the dynamic parameter, these may be useful instead of the static schedules.


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