sigma-vae-pytorch
sigma-vae-pytorch copied to clipboard
Update model.py
type change of self.log_sigma to enable requires_grad.
Hmm, is this required now? The code was running in a previous pytorch version.
Yes. If we do not typecast, we return an error message that indicates that float or complex type is required to be require_grad.