tilelang.tools¶

Submodules¶

Functions¶

__getattr__(name)

Lazily import heavy tool submodules on first attribute access.

Package Contents¶

tilelang.tools.__getattr__(name)¶

Lazily import heavy tool submodules on first attribute access.

tilelang.tools.lower_trace is a large debug-only module, so it is imported lazily (only when accessed) to keep import tilelang cheap when the feature is off. Other attributes raise AttributeError as usual.

importlib.import_module is used rather than from . import lower_trace: the latter re-enters this __getattr__ while resolving the fromlist and recurses infinitely.