tvm_tirx.tirx.script.register_script_namespace

tvm_tirx.tirx.script.register_script_namespace#

tvm_tirx.tirx.script.register_script_namespace(name, namespace)#

Bind an explicit construction namespace to T and its builder aliases.

Parameters:
  • name (str) – Attribute name under which the namespace is published.

  • namespace (object) – Module or custom namespace instance to bind without copying its members.

Returns:

namespace (object) – The supplied object, also available as T.<name>.

Return type:

object

Notes

This updates explicit script attributes, not standalone parser defaults. Use parser.register_namespace separately when text should resolve a root name.