MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / __init__

Method __init__

seq2seq/utils.py:336–337  ·  view source on GitHub ↗
(self, data, batch_size, shuffle=True)

Source from the content-addressed store, hash-verified

334 "Go through the text data by order of src length with a bit of randomness. From fastai repo."
335
336 def __init__(self, data, batch_size, shuffle=True):
337 self.data, self.bs, self.shuffle = data, batch_size, shuffle
338
339 def __len__(self) -> int:
340 return len(self.data)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected