Skip to content

Commit e534df8

Browse files
gchanansoumith
authored andcommitted
Docs for addcdiv, addcmul
1 parent 04882e9 commit e534df8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

torch/_torch_docs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@
178178
Performs the element-wise division of :attr:`tensor1` by :attr:`tensor2`,
179179
multiply the result by the scalar :attr:`value` and add it to :attr:`tensor`.
180180
181-
The number of elements must match, but sizes do not matter.
181+
The shapes of :attr:`tensor`, :attr:`tensor1`, and :attr:`tensor2` must be
182+
:ref:`broadcastable <broadcasting-semantics>`.
182183
183184
For inputs of type `FloatTensor` or `DoubleTensor`, :attr:`value` must be a real number, otherwise an integer
184185
@@ -209,7 +210,8 @@
209210
by :attr:`tensor2`, multiply the result by the scalar :attr:`value`
210211
and add it to :attr:`tensor`.
211212
212-
The number of elements must match, but sizes do not matter.
213+
The shapes of :attr:`tensor`, :attr:`tensor1`, and :attr:`tensor2` must be
214+
:ref:`broadcastable <broadcasting-semantics>`.
213215
214216
For inputs of type `FloatTensor` or `DoubleTensor`, :attr:`value` must be a real number, otherwise an integer
215217

0 commit comments

Comments
 (0)