Parallel training

I have two questions? I have two variational autoencoders A and B.

  1. How can I train two variational autoencoders in parallel at the same time?
  2. The input of A is reconstructed by the decoder of B?
    Any reference material or code could be helpful.