Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OUCMachineLearning/OUCML
/ encode
Method
encode
One_Day_One_GAN/day15/vae.py:50–52 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
48
self.fc4 = nn.Linear(400, 784)
49
50
def
encode(self, x):
51
h1 = F.relu(self.fc1(x))
52
return
self.fc21(h1), self.fc22(h1)
53
54
def
reparametrize(self, mu, logvar):
55
std = logvar.mul(0.5).exp_()
Callers
1
forward
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected