torch.Tensor.map_¶
- Tensor.map_(tensor, callable)¶
- Applies - callablefor each element in- selftensor and the given- tensorand stores the results in- selftensor.- selftensor and the given- tensormust be broadcastable.- The - callableshould have the signature:- def callable(a, b) -> number