他的回复:
按照JeffDing说的那样该还是不行Traceback (most recent call last): File "code/main_fed.py", line 33, in dataset_train = datasets.MNIST('.../data/mnist', train=True, download=False, transform=trans_mnist) File "/home/work/anaconda/lib/python3.6/site-packages/torchvision/datasets/mnist.py", line 80, in __init__ [ModelArts Service Log]modelarts-pipe: will create log file /tmp/log/MA-federated-learning-master-11-01-10-26.log [ModelArts Service Log]modelarts-pipe: will create log file /tmp/log/MA-federated-learning-master-11-01-10-26.log [ModelArts Service Log]modelarts-pipe: will write log file /tmp/log/MA-federated-learning-master-11-01-10-26.log [ModelArts Service Log]modelarts-pipe: param for max log length: 1073741824 [ModelArts Service Log]modelarts-pipe: param for whether exit on overflow: 0 self.data, self.targets = torch.load(os.path.join(self.processed_folder, data_file)) File "/home/work/anaconda/lib/python3.6/site-packages/torch/serialization.py", line 527, in load with _open_zipfile_reader(f) as opened_zipfile: File "/home/work/anaconda/lib/python3.6/site-packages/torch/serialization.py", line 224, in __init__ super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: version_ = kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/serialize/inline_container.cc:132, please report a bug to PyTorch. Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 2. Your PyTorch installation may be too old. (init at /pytorch/caffe2/serialize/inline_container.cc:132)