MCPcopy Create free account
hub / github.com/DSL-Lab/GRBM / GMMDataset

Class GMMDataset

gmm.py:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class GMMDataset(torch.utils.data.Dataset):
8
9 def __init__(self, samples):
10 self.samples = samples
11
12 def __len__(self):
13 return self.samples.shape[0]
14
15 def __getitem__(self, idx):
16 return self.samples[idx, :], torch.ones(1).to(self.samples.device)
17
18
19class GMM(nn.Module):

Callers 1

create_datasetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected