tqchen commented on a change in pull request #8354:
URL: https://github.com/apache/tvm/pull/8354#discussion_r659322308
##########
File path: python/tvm/tir/function.py
##########
@@ -85,3 +87,19 @@ def with_body(self, new_body, span=None):
The created new function.
"""
return PrimFunc(self.params, new_body, self.ret_type, self.buffer_map,
self.attrs, span)
+
+ def specialize(self, param_map: Mapping[Var, Union[PrimExpr, Buffer]]):
+ """Metaprogramming usage: specialize parameters of PrimFunc
+
Review comment:
Add an code example block
--
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]