Thanks, @KFrank!
Numpy provides a way to vectorize 370 a function. Examples for the same makes it very clear and easy to understand. I am not able to find a similar thing in PyTorch. A reference to any of the following would be really helpful:

How to use map() with PyTorch tensors?
Is there any API like np.vectorize?

PS: We want to apply a function f on each element of list of tensors.
Thanks!