AttributeError: module 'distutils' has no attribute 'version ...
github.com › pytorch › pytorchCollecting environment information... PyTorch version: 1.10.0+cu102 Is debug build: False CUDA used to build PyTorch: 10.2 ROCM used to build PyTorch: N/A OS: Ubuntu 20.04.3 LTS (x86_64) GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 Clang version: Could not collect CMake version: Could not collect Libc version: glibc-2.31 Python version: 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0 ...
Module — PyTorch 1.10.1 documentation
https://pytorch.org/docs/stable/generated/torch.nn.Module.htmlReturns. self. Return type. Module. dump_patches: bool = False ¶. This allows better BC support for load_state_dict().In state_dict(), the version number will be saved as in the attribute _metadata of the returned state dict, and thus pickled. _metadata is a dictionary with keys that follow the naming convention of state dict. See _load_from_state_dict on how to use this information in loading.