MCPcopy Create free account
hub / github.com/CaraJ7/MMSearch / save

Method save

retrieve_content/tokenization/utils.py:8–13  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

6 """Mixin for persisting an instance with pickle."""
7
8 def save(self, path):
9 try:
10 with open(path, 'wb') as f:
11 pickle.dump(self, f)
12 except (pickle.PickleError, OSError) as e:
13 raise IOError('Unable to save {} to path: {}'.format(self.__class__.__name__, path)) from e
14
15 @classmethod
16 def load(cls, path):

Callers 3

crop_and_splitFunction · 0.80
pil_image_to_bytesFunction · 0.80
inferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected