Rate this Page

torch.compiler.get_default_backend#

torch.compiler.get_default_backend()[source]#

Return the current default backend for torch.compile.

Returns:

The current default backend (string or callable). Initially "inductor".

Return type:

str | Callable[[…], Any]