mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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:
committed by
PyTorch MergeBot
parent
39161e73fc
commit
af42256db4
@ -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)"
|
||||
),
|
||||
)
|
||||
)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user