MCPcopy Create free account
hub / github.com/WendyShang/flare / reparameterize

Method reparameterize

encoder.py:189–192  ·  view source on GitHub ↗
(self, mu, logstd)

Source from the content-addressed store, hash-verified

187
188
189 def reparameterize(self, mu, logstd):
190 std = torch.exp(logstd)
191 eps = torch.randn_like(std)
192 return mu + eps * std
193
194 def forward_conv(self, obs,flatten=True):
195 if obs.max() > 1.:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected