AccelerationDomain

class AccelerationDomain(name, /, *, env_prefix=None)[source]

Bases: object

A library’s registry of functions that are candidates for acceleration.

Create a domain with the given unique name.

Parameters:
  • name (str)

  • env_prefix (str | None)

acceleration_candidate(func=None, /, *, name=None)[source]

Mark func as a candidate for acceleration and return a dispatching wrapper.

Parameters:
Return type:

Callable

materialize()[source]

Declare that the domain is complete.

Acceleration candidates cannot be added after this has been called.

Return type:

None