zxybazh commented on a change in pull request #10368:
URL: https://github.com/apache/tvm/pull/10368#discussion_r817280397
##########
File path: python/tvm/meta_schedule/utils.py
##########
@@ -31,6 +31,107 @@
from tvm.tir import FloatImm, IntImm
+def derived_object(cls: Any) -> type:
Review comment:
Note that derived object works with non-tvm objects, e.g., `PyRunner`,
while it generates a new class called `TVMDerivedObj` inheriting from the
`_tvm_metadata["cls"]` field of the non-tvm object, e.g., `_PyRunner`. By
design the latter base class for inheritance can be any tvm object.
--
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]