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

Method reparameterize

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

Source from the content-addressed store, hash-verified

64 self.output_logits = output_logits
65
66 def reparameterize(self, mu, logstd):
67 std = torch.exp(logstd)
68 eps = torch.randn_like(std)
69 return mu + eps * std
70
71 def forward_conv(self, obs,flatten=True):
72 if obs.max() > 1.:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected