pytorch / 2 / generated / torch.compiler.disable.html

torch.compiler.disable

torch.compiler.disable(fn=None, recursive=True) [source]

This function provides both a decorator and a context manager to disable compilation on a function It also provides the option of recursively disabling called functions

Parameters
  • fn (optional) – The function to disable
  • recursive (optional) – A boolean value indicating whether the disabling should be recursive.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.compiler.disable.html