tvm_tirx.tirx.script.expose_script_op#
- tvm_tirx.tirx.script.expose_script_op(name)#
Select a completed Op and publish it to declared API destinations.
- Parameters:
name (str) – Fully qualified native op name whose definition is ready for publication.
- Returns:
binding (Callable[…, Any] or None) – The built-in script binding for an ir, prim or tirx prefix. Other roots return None; callers read their extension’s explicitly declared API module.
- Raises:
ValueError – If a matching destination has a non-callable binding at the op name.
- Return type:
Callable[[…], Any] | None
Notes
All matching destinations receive the selection before the result is returned. An extension declares its destinations with _init_exposed_op_api; exposure does not register a parser default or infer an extension’s script destination.