MCPcopy Create free account
hub / github.com/GanjinZero/BioBART / BARTDatasetProviderInterface

Class BARTDatasetProviderInterface

pretrain_src/dataloader.py:160–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 return noised_x, masked_number
159
160class BARTDatasetProviderInterface:
161 def get_shard(self, index, shuffle=True):
162 raise NotImplementedError
163
164 def release_shard(self, index):
165 raise NotImplementedError
166
167 def prefetch_shard(self, index):
168 raise NotImplementedError
169
170 def get_batch(self, batch_iter):
171 raise NotImplementedError
172
173 def prefetch_batch(self):
174 raise NotImplementedError
175
176class BioBARTDatasetProvider(BARTDatasetProviderInterface):
177 def __init__(self, args):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected