relax.op.repeat: error while converting argument 1, expected int but got Object

I’m using tensor.repeat(w, -1) to repeat the tenor w times, but w is not a constant, it’s calculated with input, and TVM give the following error:

TVMError: In function relax.op.repeat(0: RelayExpr, 1: int, 2: IntImm) → RelayExpr: error while converting argument 1: [16:57:31] /Users/catalyst/Workspace/mlc-ai-package-self-runner/_work/package/package/tvm/include/tvm/runtime/packed_func.h:769: expected int but got Object

How can I fix the error? Thanks