We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DenseVAE in ./models/models.py, has an issue when run on CPU
DenseVAE
It seems that x is not contiguous when training the VAE with --model_type mlp from the raw pixels
x
--model_type mlp
def encode(self, x): # Flatten input x = x.view(x.size(0), -1) x = self.relu(self.encoder_fc1(x)) return self.encoder_fc21(x), self.encoder_fc22(x)
As explained https://discuss.pytorch.org/t/runtimeerror-input-is-not-contiguous/930 , the simple fix is
def encode(self, x): # Flatten input x = x.contiguous() x = x.view(x.size(0), -1) x = self.relu(self.encoder_fc1(x)) return self.encoder_fc21(x), self.encoder_fc22(x)
However, i'm opening an issue, as I am not sure where else this error can occur, nor why it does occur.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
DenseVAE
in ./models/models.py, has an issue when run on CPUIt seems that
x
is not contiguous when training the VAE with--model_type mlp
from the raw pixelsAs explained https://discuss.pytorch.org/t/runtimeerror-input-is-not-contiguous/930 ,
the simple fix is
However, i'm opening an issue, as I am not sure where else this error can occur, nor why it does occur.
The text was updated successfully, but these errors were encountered: