mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[Doc] Add period at the end of the sentence (#145384)
Test plan: https://docs-preview.pytorch.org/pytorch/pytorch/145384/generated/torch.compiler.disable.html#torch-compiler-disable Fixes https://github.com/pytorch/pytorch/issues/145365 Pull Request resolved: https://github.com/pytorch/pytorch/pull/145384 Approved by: https://github.com/huydhn, https://github.com/svekars, https://github.com/kit1980
This commit is contained in:
parent
3917053f63
commit
95ff9f0340
1 changed files with 3 additions and 3 deletions
|
|
@ -209,7 +209,7 @@ def list_backends(exclude_tags=("debug", "experimental")) -> list[str]:
|
|||
def assume_constant_result(fn):
|
||||
"""
|
||||
This function is used to mark a function `fn` as having a constant result.
|
||||
This allows the compiler to optimize away your function
|
||||
This allows the compiler to optimize away your function.
|
||||
Returns The same function `fn`
|
||||
|
||||
Args:
|
||||
|
|
@ -227,8 +227,8 @@ def assume_constant_result(fn):
|
|||
|
||||
def disable(fn=None, recursive=True):
|
||||
"""
|
||||
This function provides a decorator to disable compilation on a function
|
||||
It also provides the option of recursively disabling called functions
|
||||
This function provides a decorator to disable compilation on a function.
|
||||
It also provides the option of recursively disabling called functions.
|
||||
|
||||
Args:
|
||||
fn (optional): The function to disable
|
||||
|
|
|
|||
Loading…
Reference in a new issue