Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LTH14/mar
/ sample
Method
sample
models/vae.py:412–416 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
410
)
411
412
def
sample(self):
413
x = self.mean + self.std * torch.randn(self.mean.shape).to(
414
device=self.parameters.device
415
)
416
return
x
417
418
def
kl(self, other=None):
419
if
self.deterministic:
Callers
1
train_one_epoch
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected