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

Method forward

Dropout_AutoEncoder/net/AE.py:36–41  ·  view source on GitHub ↗
(self,x)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected