Rate this Page

torch.Tensor.map_#

Tensor.map_(tensor,callable)#

Appliescallable for each element inself tensor and the giventensor and stores the results inself tensor.self tensor andthe giventensor must bebroadcastable.

Thecallable should have the signature:

defcallable(a,b)->number