Lunderberg commented on a change in pull request #10099:
URL: https://github.com/apache/tvm/pull/10099#discussion_r798670765
##########
File path: python/tvm/script/tir/ty.py
##########
@@ -44,6 +44,9 @@ def __init__(self, vtype):
self.type = vtype
def evaluate(self):
+ if isinstance(self.type, tvm.ir.Type):
Review comment:
This check gets hit when calling `.evaluate()` on the return type of
`GenericPtrType.__getitem__`. The return type is a `ConcreteType` that has
been passed a `tvm.ir.PointerType`, which should then be returned directly when
the concrete type is evaluated, rather than the usual behavior of wrapping it
in a `tvm.ir.PrimType`.
--
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]