altanh commented on code in PR #10969:
URL: https://github.com/apache/tvm/pull/10969#discussion_r848710144
##########
python/tvm/relay/op/transform.py:
##########
@@ -836,7 +836,7 @@ def broadcast_to(data, shape):
The resulting tensor.
"""
if isinstance(shape, Constant):
- shape = list(shape.data.numpy())
+ shape = [int(i) for i in shape.data.numpy()]
Review Comment:
I guess one possible option is to change the behavior `tvm.runtime.convert`
to check for overflow and use `int64` when necessary
--
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]