diff options
author | Peter Goldsborough <psag@fb.com> | 2019-01-07 11:31:45 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-01-07 11:35:19 -0800 |
commit | 321a55935963a5b65261941197b0213112db1af2 (patch) | |
tree | 0e775c2f61aff2ebaf6d821d74ea31ddabf6b0d6 /docs | |
parent | 2ebeb33697d7fb9acaac026cfa140af56e617d11 (diff) | |
download | pytorch-321a55935963a5b65261941197b0213112db1af2.tar.gz pytorch-321a55935963a5b65261941197b0213112db1af2.tar.bz2 pytorch-321a55935963a5b65261941197b0213112db1af2.zip |
Fix restructured text issue in tensor_basics.rst (#15701)
Summary:
Fix submitted by huntzhan in https://github.com/pytorch/cppdocs/pull/4. The source is in this repo so the patch has to be applied here.
soumith ezyang
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15701
Differential Revision: D13591302
Pulled By: goldsborough
fbshipit-source-id: 796957696fd560a9c5fb42265d7b2d018abaebe3
Diffstat (limited to 'docs')
-rw-r--r-- | docs/cpp/source/notes/tensor_basics.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cpp/source/notes/tensor_basics.rst b/docs/cpp/source/notes/tensor_basics.rst index 73f6a06418..5872852f3e 100644 --- a/docs/cpp/source/notes/tensor_basics.rst +++ b/docs/cpp/source/notes/tensor_basics.rst @@ -77,7 +77,7 @@ otherwise behave as normal tensors. Scalars and zero-dimensional tensors ------------------------------------ -In addition to the ``Tensor`` objects, ATen also includes ``Scalar``s that +In addition to the ``Tensor`` objects, ATen also includes ``Scalar``\s that represent a single number. Like a Tensor, Scalars are dynamically typed and can hold any one of ATen's number types. Scalars can be implicitly constructed from C++ number types. Scalars are needed because some functions like ``addmm`` take @@ -100,7 +100,7 @@ will *always* return a Scalar value, like ``sum``. torch::Tensor c = ... torch::Tensor r = torch::addmm(1.0, a, .5, b, c); -In addition to ``Scalar``s, ATen also allows ``Tensor`` objects to be +In addition to ``Scalar``\s, ATen also allows ``Tensor`` objects to be zero-dimensional. These Tensors hold a single value and they can be references to a single element in a larger ``Tensor``. They can be used anywhere a ``Tensor`` is expected. They are normally created by operators like `select` |