Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _sources/notes/tensor_basics.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand Down