mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Change docstring type callable to Callable for consistency (#82487)
### Description Across PyTorch's docstrings, both `callable` and `Callable` for variable types. The Callable should be capitalized as we are referring to the `Callable` type, and not the Python `callable()` function. ### Testing There shouldn't be any testing required. Pull Request resolved: https://github.com/pytorch/pytorch/pull/82487 Approved by: https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
c2ac3e6831
commit
71d50f4f89
@ -528,7 +528,7 @@ def remote(to, func, args=None, kwargs=None, timeout=UNSET_RPC_TIMEOUT):
|
||||
|
||||
Args:
|
||||
to (str or WorkerInfo or int): name/rank/``WorkerInfo`` of the destination worker.
|
||||
func (callable): a callable function, such as Python callables, builtin
|
||||
func (Callable): a callable function, such as Python callables, builtin
|
||||
operators (e.g. :meth:`~torch.add`) and annotated
|
||||
TorchScript functions.
|
||||
args (tuple): the argument tuple for the ``func`` invocation.
|
||||
@ -736,7 +736,7 @@ def rpc_sync(to, func, args=None, kwargs=None, timeout=UNSET_RPC_TIMEOUT):
|
||||
|
||||
Args:
|
||||
to (str or WorkerInfo or int): name/rank/``WorkerInfo`` of the destination worker.
|
||||
func (callable): a callable function, such as Python callables, builtin
|
||||
func (Callable): a callable function, such as Python callables, builtin
|
||||
operators (e.g. :meth:`~torch.add`) and annotated
|
||||
TorchScript functions.
|
||||
args (tuple): the argument tuple for the ``func`` invocation.
|
||||
@ -810,7 +810,7 @@ def rpc_async(to, func, args=None, kwargs=None, timeout=UNSET_RPC_TIMEOUT):
|
||||
|
||||
Args:
|
||||
to (str or WorkerInfo or int): name/rank/``WorkerInfo`` of the destination worker.
|
||||
func (callable): a callable function, such as Python callables, builtin
|
||||
func (Callable): a callable function, such as Python callables, builtin
|
||||
operators (e.g. :meth:`~torch.add`) and annotated
|
||||
TorchScript functions.
|
||||
args (tuple): the argument tuple for the ``func`` invocation.
|
||||
|
Reference in New Issue
Block a user