Fix missing brackets (#165138)

As stated in the title.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165138
Approved by: https://github.com/Aidyn-A, https://github.com/Skylion007
This commit is contained in:
can-gaa-hou
2025-10-10 17:23:28 +00:00
committed by PyTorch MergeBot
parent 39161e73fc
commit af42256db4
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ def check_labels(
description=(
f"{label} is not an acceptable owner "
"(please update to another label or edit ACCEPTABLE_OWNERS_LABELS "
"in tools/linters/adapters/testowners_linter.py"
"in tools/linters/adapters/testowners_linter.py)"
),
)
)

View File

@ -141,7 +141,7 @@ PyObject* THCPModule_nccl_reduce(PyObject* self, PyObject* args) {
"nccl_reduce",
1,
"(sequence[Tensor] inputs, Tensor output, int root,"
" int op, sequence[torch.cuda.Stream or None]");
" int op, sequence[torch.cuda.Stream or None])");
return nullptr;
}

View File

@ -368,7 +368,7 @@ def infer_concrete_type_builder(nn_module, share_types=True):
hint = (
"(This function exists as an attribute on the Python module, "
"but we failed to compile it to a TorchScript function. "
f"\nThe error stack is reproduced here:\n{e}"
f"\nThe error stack is reproduced here:\n{e})"
)
concrete_type_builder.add_failed_attribute(name, hint)