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

Method finalize

utils/indexed_datasets.py:52–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 self.byte_offsets.append(self.byte_offsets[-1] + bytes)
51
52 def finalize(self):
53 self.out_file.close()
54 np.save(open(f"{self.path}.idx", 'wb'), {'offsets': self.byte_offsets})
55
56
57if __name__ == "__main__":

Callers 3

process_dataMethod · 0.95
trainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected