MCPcopy Create free account
hub / github.com/InternScience/SciReason / load

Function load

opencompass/utils/fileio.py:258–261  ·  view source on GitHub ↗
(f, *args, **kwargs)

Source from the content-addressed store, hash-verified

256
257 @patch_func(torch, 'load')
258 def load(f, *args, **kwargs):
259 if isinstance(f, str):
260 f = io.BytesIO(fileio.get(f))
261 return load._fallback(f, *args, **kwargs)
262
263 try:
264 setattr(patch_fileio, '_patched', True)

Callers 5

_load_datasetMethod · 0.85
_load_datasetMethod · 0.85
_load_datasetMethod · 0.85
_load_datasetMethod · 0.85
_load_datasetMethod · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected