torch.Tensor.map_
- Tensor.map_(tensor, callable)
Applies
callablefor each element inselftensor and the giventensorand stores the results intensor. tensor and the given must be .
Applies callable for each element in self tensor and the given
tensor and stores the results in tensor. tensor and
the given must be .
selfThe callable should have the signature:
def callable(a, b) -> number