TorchLean API

NN.Backend.Registry

Backend Registry #

Registry of backend capsules known to TorchLean's planner.

Capsules are contributed by operation or provider modules and flattened into one planner catalog. Model architectures never appear here: they lower to backend operations, and the planner chooses a capsule for each operation. Build availability filters the maintained LibTorch CUDA capsules from CPU-only profiles. Caller-supplied modules still pass the same availability and assurance checks.

A named, independently maintained contribution to the backend catalog.

Instances For

    Flatten capsule modules while preserving module and local preference order.

    Instances For

      First repeated module name, if the registry contains two contributions with the same name.

      Instances For

        First repeated capsule identity after flattening, if one exists.

        Instances For

          Validate the identities that make registry ordering meaningful.

          Different providers may implement the same operation. What is rejected is registering the same named module twice or repeating the same capsule name, operation, provider, and device tuple.

          Instances For

            Maintained operation/provider modules. A new architecture does not modify this list; only a new primitive implementation or provider does.

            Instances For