mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
Add broadcasting support for map_, map2_.
This commit is contained in:
committed by
Soumith Chintala
parent
ec120fac0c
commit
c54e532954
@ -792,8 +792,10 @@ add_docstr(torch._C.FloatTensorBase.map_,
|
||||
map_(tensor, callable)
|
||||
|
||||
Applies :attr:`callable` for each element in this tensor and the given tensor
|
||||
and stores the results in this tensor. The :attr:`callable` should have the
|
||||
signature::
|
||||
and stores the results in this tensor. This tensor and the given tensor must be
|
||||
:ref:`broadcastable <broadcasting-semantics>`.
|
||||
|
||||
The :attr:`callable` should have the signature::
|
||||
|
||||
def callable(a, b) -> number
|
||||
""")
|
||||
|
Reference in New Issue
Block a user