You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I have question about building documentation files.
I add some codes to _torch_docs.py file to solve the issue no. #29758 and built it.
Build was successful and I got an index.html file in build/html/folder, but the code I wrote was not reflected at all.
I tried a few times but couldn't solve it. Please give me a hand on which part to check.
I'm sorry, but @vishwakftw can you give me some advice?
📚 Documentation
diff --git a/torch/_torch_docs.py b/torch/_torch_docs.py
index 6d968a5191..9f3c06ffdd 100644
--- a/torch/_torch_docs.py+++ b/torch/_torch_docs.py@@ -3356,12 +3356,13 @@ Example::
add_docstr(torch.mean,
r"""
-.. function:: mean(input) -> Tensor+.. function:: mean(input, dtype=None) -> Tensor
Returns the mean @value of all elements in the :attr:`input` tensor.
Args:
{input}
+ {dtype}
Example::
@@ -3371,7 +3372,7 @@ Example::
>>> torch.mean(a)
tensor(0.3367)
-.. function:: mean(input, dim, keepdim=False, out=None) -> Tensor+.. function:: mean(input, dim, keepdim=False, out=None, dtype=None) -> Tensor
Returns the mean value of each row of the :attr:`input` tensor in the given
dimension :attr:`dim`. If :attr:`dim` is a list of dimensions,
@@ -3384,6 +3385,7 @@ Args:
{dim}
{keepdim}
{out}
+ dtype (:class:`torch.dtype`): the desired data type of returned tensor.
Example::
The text was updated successfully, but these errors were encountered:
cold-pumpkin
changed the title
Doc file was built, but not reflected.
doc.py file was built, but not reflected.
Feb 8, 2020
I believe you have to rebuild PyTorch from source. The docs are built with the version of PyTorch installed, so if you don’t install PyTorch after making these changes, you won’t be able to see it.
Hello. I have question about building documentation files.
I add some codes to
_torch_docs.py
file to solve the issue no. #29758 and built it.Build was successful and I got an
index.html
file inbuild/html/
folder, but the code I wrote was not reflected at all.I tried a few times but couldn't solve it. Please give me a hand on which part to check.
I'm sorry, but @vishwakftw can you give me some advice?
📚 Documentation
The text was updated successfully, but these errors were encountered: