Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KeepTryingTo/Pytorch-GAN
/ forward
Method
forward
GANCode/gModel.py:23–26 ·
view source on GitHub ↗
(self,input)
Source
from the content-addressed store, hash-verified
21
torch.nn.Tanh()
#对于生成器使用tanh激活函数更好
22
)
23
def
forward(self,input):
24
x = self.fc(input)
25
img = x.view(-1,28,28)
26
return
img
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected