MCPcopy Create free account
hub / github.com/THUDM/GLM / close

Method close

data_utils/lazy_loader.py:91–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.lengths.append(len(encoded))
90
91 def close(self):
92 self.output.close()
93 with open(self.lenpath, 'wb') as f:
94 pkl.dump(self.lengths, f)
95
96
97def split_strings(strings, start, chr_lens):

Callers 3

get_datasetFunction · 0.95
processMethod · 0.80
http_getFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected