RuntimeError: [enforce fail at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\caffe2\serialize\inline_container.cc:300]
Labels: module: serialization, triaged

### 🐛 Describe the bug

```
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
File ~\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\serialization.py:380, in save(obj, f, pickle_module, pickle_protocol, _use_new_zipfile_serialization)
    379 with _open_zipfile_writer(opened_file) as opened_zipfile:
--> 380     _save(obj, opened_zipfile, pickle_module, pickle_protocol)
    381     return

File ~\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\serialization.py:604, in _save(obj, zip_file, pickle_module, pickle_protocol)
    603 num_bytes = storage.nbytes()
--> 604 zip_file.write_record(name, storage.data_ptr(), num_bytes)

RuntimeError: Could not allocate bytes object!

During handling of the above exception, another exception occurred:

RuntimeError                              Traceback (most recent call last)
Input In [4], in <cell line: 7>()
      4     if epoch < 115: return 0.001
      5     if epoch < 145: return 0.0001
----> 7 yolo.train(net, train_iter, test_iter, 145, lr=lr, momentum=0.9, weight_decay=5e-4, device='cuda', accum_batch_num=4, save_path='./model')

File ~\Desktop\yolo-v1-pytorch\yolo.py:375, in train(net, train_iter, test_iter, num_epochs, lr, momentum, weight_decay, device, accum_batch_num, save_path, load, load_epoch, pretrained)
    372 	animator.add(epoch + 1, (None, test_l))
    374 # save model
--> 375 torch.save(net.state_dict(), os.path.join(save_path, f'./{time.time_ns()}-epoch-{epoch}.pth'))

File ~\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\serialization.py:381, in save(obj, f, pickle_module, pickle_protocol, _use_new_zipfile_serialization)
    379     with _open_zipfile_writer(opened_file) as opened_zipfile:
    380         _save(obj, opened_zipfile, pickle_module, pickle_protocol)
--> 381         return
    382 _legacy_save(obj, opened_file, pickle_module, pickle_protocol)

File ~\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\serialization.py:260, in _open_zipfile_writer_buffer.__exit__(self, *args)
    259 def __exit__(self, *args) -> None:
--> 260     self.file_like.write_end_of_file()
    261     self.buffer.flush()

RuntimeError: [enforce fail at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\caffe2\serialize\inline_container.cc:300] . unexpected pos 151863680 vs 151863576
```

### Versions

```
PyTorch version: 1.11.0+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 专业版
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.9.0 (tags/v3.9.0:9cf6752, Oct  5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19041-SP0
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 2070 SUPER
Nvidia driver version: 511.65
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.21.5
[pip3] torch==1.11.0+cu113
[pip3] torchaudio==0.11.0+cu113
[pip3] torchvision==0.12.0+cu113
[conda] Could not collect
```

cc @mruberry