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

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