junrushao1994 commented on a change in pull request #7809:
URL: https://github.com/apache/tvm/pull/7809#discussion_r617207042
##########
File path: python/tvm/ir/op.py
##########
@@ -115,3 +127,43 @@ def _register(v):
return v
return _register(value) if value is not None else _register
+
+
+def register_op_intrin_lowering(
+ op_name,
+ target,
+ f=None,
+ level=10,
+ override=False,
+):
Review comment:
This is an interesting topic to discuss :-)
In our particular case, we could still provide default values for some
arguments, like:
```python
>>> def f(a, *, b, c=1):
... print(f"a = {a}, b = {b}, c = {c}")
...
>>> f(1, 2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: f() takes 1 positional argument but 2 were given
>>> f(1, b=2)
a = 1, b = 2, c = 1
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]