Thanks a lot @masahi, that is very useful information, but I think it may be a way too far from my goal.
Let me try to make things more clear:
Register OPs
Currently, registering ops is like:
TVM_REGISTER_OP("my_op")
.describe("my_op xxxxx")
.set_num_inputs(2)
.set_attr<xxx>(...)
.add_type_rel(...)
It needs recompile.
What I mean by registering ops from python site is like:
# New API (TBD, just for concept explanation)
register_op("my_op")
my_op.describe("my_op xxxxx")
my_op.add_type_rel(...)
# Existing API
register_op_attr("my_op", ...)
register_intrin_lowering("my_op", ...)
Hot Plug OPs
For the following up about hot plug ops, taking op “image.resize” for example:
Currently, it is packed together with tvm library (except compute and schedule functions can be registered with python).
I’d like to know if there is a plan to dynamic load it.
The concept is like tensorflow’s create op.