MCPcopy Create free account
hub / github.com/kyegomez/BitNet / __init__

Method __init__

train.py:56–59  ·  view source on GitHub ↗
(self, data, seq_len)

Source from the content-addressed store, hash-verified

54
55class TextSamplerDataset(Dataset):
56 def __init__(self, data, seq_len):
57 super().__init__()
58 self.data = data
59 self.seq_len = seq_len
60
61 def __getitem__(self, index):
62 rand_start = torch.randint(0, self.data.size(0) - self.seq_len, (1,))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected