Two questions:

Does pytorch perform any internal calculations in parallel? For example in Linear layer or broadcasting?
I have code like this

x= [x1, x2, x3]
res = Variable(torch.zeros(3))
for i in range(3):
    res[i] = myfunc(x[i])
return res

But in my opinion it look little ugly and want some parallel calculations (x1, x2, x3 independent variables). How I can make it better?