I’m going to convolve kernel K with a list of input data X = [x1, x2, x3]. Using the code below could work but is slow for it runs in serial.
for x in X:
  out = F.conv2d(x, K)

I wonder if I could handly write parallel code like parfor(Matlab) using the PyTorch lib?
parfor x in X:
  out = F.conv2d(x, K)

Or are there other mechanisms for writing parallel code?
Thanks a lot!