envs-site_pkage-torch-hub.py只需要将最后三行改成
if _is_legacy_zip_format(cached_file): return _legacy_zip_load(cached_file, model_dir, map_location) return torch.load(cached_file, map_location='cpu')
envs-site_pkage-torch-hub.py只需要将最后三行改成
if _is_legacy_zip_format(cached_file): return _legacy_zip_load(cached_file, model_dir, map_location) return torch.load(cached_file, map_location='cpu')