soiferj commented on a change in pull request #4258: [WIP][TVM] Bring Your Own
Codegen to TVM
URL: https://github.com/apache/incubator-tvm/pull/4258#discussion_r343180538
##########
File path: python/tvm/relay/op/op.py
##########
@@ -256,6 +257,25 @@ def register_shape_func(op_name, data_dependant,
shape_func=None, level=10):
get(op_name).set_attr("TShapeDataDependant", data_dependant, level)
return register(op_name, "FShapeFunc", shape_func, level)
+def register_extern_op(op_name, fextern=None, level=10):
+ """Register the external codegen tool for an op.
+
+ Parameters
+ ----------
+ op_name : str
+ The name of the operator.
+
+ fextern: function (attrs: Attrs, args: List[Expr], compiler: str) ->
+ new_expr: Expr
Review comment:
Is this used?
----------------------------------------------------------------
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]
With regards,
Apache Git Services