MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / forward

Method forward

Denoising_AutoEncoder/net/AE.py:32–37  ·  view source on GitHub ↗
(self,x)

Source from the content-addressed store, hash-verified

30 torch.nn.Linear(in_features=512, out_features=in_feautres)
31 )
32 def forward(self,x):
33 x = x.view(-1,784)
34 e_x = self.encoder(x)
35 d_x = self.decoder(e_x)
36 img = d_x.view(-1,28,28)
37 return img
38
39if __name__ == '__main__':
40 x= torch.randn(size = (1,28,28),device='cpu')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected