(f, *args, **kwargs)
| 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) |
no test coverage detected