(self,x)
| 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 | |
| 39 | if __name__ == '__main__': |
| 40 | x= torch.randn(size = (1,28,28),device='cpu') |
nothing calls this directly
no outgoing calls
no test coverage detected