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