Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/examples
/ decode
Method
decode
vae/main.py:65–67 ·
view source on GitHub ↗
(self, z)
Source
from the content-addressed store, hash-verified
63
return
mu + eps*std
64
65
def
decode(self, z):
66
h3 = F.relu(self.fc3(z))
67
return
torch.sigmoid(self.fc4(h3))
68
69
def
forward(self, x):
70
mu, logvar = self.encode(x.view(-1, 784))
Callers
3
forward
Method · 0.95
main.py
File · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected