MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / pstore

Function pstore

index/dense/utils.py:76–82  ·  view source on GitHub ↗
(x, path, high_protocol = False)

Source from the content-addressed store, hash-verified

74 return res
75
76def pstore(x, path, high_protocol = False):
77 with open(path, 'wb') as f:
78 if high_protocol:
79 pickle.dump(x, f, protocol=pickle.HIGHEST_PROTOCOL)
80 else:
81 pickle.dump(x, f)
82 print('store object in path = {} ok'.format(path))
83
84
85def load_collection(collection_file):

Callers 2

dense_indexingFunction · 0.90
dense_indexingFunction · 0.90

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected