pytorch / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://pytorch.org
Other
83.35k stars 22.48k forks source link

`torch.Tensor.layout` is not documented #98409

Open malfet opened 1 year ago

malfet commented 1 year ago

🐛 Describe the bug

This looks like a public function, so it should have been documented, but it is not:

% python -c "import torch;print(torch.Tensor.layout.__doc__)"   
None

I wonder if this intentional. If not, we should add the documentation.

Versions

2.0/nightly

cc @svekars @carljparker @albanD

albanD commented 1 year ago

Note that it is documented on the website via a manual page: https://pytorch.org/docs/stable/tensor_attributes.html?highlight=layout#torch.layout