diff options
author | Yimeng Zhang <zym1010@gmail.com> | 2018-02-13 12:55:36 -0500 |
---|---|---|
committer | Edward Z. Yang <ezyang@mit.edu> | 2018-02-13 09:55:36 -0800 |
commit | da79697d454aefe5d2b551edb6738a99f47ac1d4 (patch) | |
tree | f255cc339c3804a135fdbced56615073213897b7 /torch | |
parent | 7c3a8eaa15a829cc1d4f1abe075468ca0f95a906 (diff) | |
download | pytorch-da79697d454aefe5d2b551edb6738a99f47ac1d4.tar.gz pytorch-da79697d454aefe5d2b551edb6738a99f47ac1d4.tar.bz2 pytorch-da79697d454aefe5d2b551edb6738a99f47ac1d4.zip |
make explicit about keyword-onlyness of `out` (#5165)
* make explicit about keyword-onlyness of `out`
fix issue 2 of https://github.com/pytorch/pytorch/issues/5156#issuecomment-364521510
Diffstat (limited to 'torch')
-rw-r--r-- | torch/_torch_docs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/torch/_torch_docs.py b/torch/_torch_docs.py index b6f1437e9b..5f07839002 100644 --- a/torch/_torch_docs.py +++ b/torch/_torch_docs.py @@ -59,6 +59,8 @@ a real number, otherwise it should be an integer. Args: input (Tensor): the input tensor value (Number): the number to be added to each element of :attr:`input` + +Keyword arguments: out (Tensor, optional): the output tensor Example:: @@ -100,6 +102,8 @@ Args: input (Tensor): the first input tensor value (Number): the scalar multiplier for :attr:`other` other (Tensor): the second input tensor + +Keyword arguments: out (Tensor, optional): the output tensor Example:: |