Shortcuts

Source code for mmeval.fileio.handlers.pickle_handler

# Copyright (c) OpenMMLab. All rights reserved.
import pickle

from .base import BaseFileHandler


[docs]class PickleHandler(BaseFileHandler): """A Pickle handler that parse pickle data from file object.""" str_like = False def load_from_fileobj(self, file, **kwargs): return pickle.load(file, **kwargs) def load_from_path(self, filepath, **kwargs): return super().load_from_path(filepath, mode='rb', **kwargs)
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.