MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / __init__

Method __init__

utils/indexed_datasets.py:42–45  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

40
41class IndexedDatasetBuilder:
42 def __init__(self, path):
43 self.path = path
44 self.out_file = open(f"{path}.data", 'wb')
45 self.byte_offsets = [0]
46
47 def add_item(self, item):
48 s = pickle.dumps(item)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected