5.23.7. utils.handle_backend

eminus.utils.handle_backend(func, *args, **kwargs)[source]

Use a function optimized with a different backend if available.

Parameters:
  • func – Function with an alternative implementation.

  • args – Pass-through arguments.

Keyword Arguments:

kwargs – Pass-through keyword arguments.

Returns:

Decorator.