VAE-GAN: INPLACE operation error

This issue looks like similar to mine:
inplace error in GAN
But I don’t have enough understanding to extrapolate this approach over my situation…