How to run different LSTM models on different data parallely?

python

#1

I have ‘n’ different datasets. I want to fit LSTM model on each of the datasets. For every dataset, parameters like number layers, number of neurons on each layer, batch_size, epochs etc. will be different. I have a optimizer code, which optimizes these parameters for every dataset. How do I parallelize the code so the code runs parallely for every dataset?