TaylorHere commented on issue #11783:
URL: https://github.com/apache/tvm/issues/11783#issuecomment-1160243903
I found out what wrong here.
```python
def expand_shape(in_shape, shape):
"""A function expands the shape when the rank is lower than that
of the given
intput. Also it replaces the extent of the shape with the
corresponding extent
of the intput when it is 1.
"""
in_dims = infer_shape(in_shape)[0] # <class 'int'>
new_dims = infer_shape(shape)[0] # <class 'tvm.tir.expr.Any'>
```
--
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]