Fix broken link to torch.compile docs (#104982)

The existing link https://pytorch.org/docs/master/dynamo/custom-backends.html is 404. Updating to use the new link.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/104982
Approved by: https://github.com/msaroufim
This commit is contained in:
Svetlana Karslioglu 2023-07-11 20:35:43 +00:00 committed by PyTorch MergeBot
parent c60cb91700
commit 6f27c5185f

View File

@ -1620,7 +1620,7 @@ def compile(model: Optional[Callable] = None, *,
- "inductor" is the default backend, which is a good balance between performance and overhead
- Non experimental in-tree backends can be seen with `torch._dynamo.list_backends()`
- Experimental or debug in-tree backends can be seen with `torch._dynamo.list_backends(None)`
- To register an out-of-tree custom backend: https://pytorch.org/docs/master/dynamo/custom-backends.html
- To register an out-of-tree custom backend: https://pytorch.org/docs/main/compile/custom-backends.html
mode (str): Can be either "default", "reduce-overhead" or "max-autotune"
- "default" is the default mode, which is a good balance between performance and overhead