Backto PyTorch Index
Error | Case | Solution | Reason |
---|---|---|---|
RuntimeError: PyTorch was compiled without NumPy support | First Run after no-error installation | Uninstall Re-compile pytorch or install another version with np support. eg: v0.4.1 pip uninstall torch; pip install torch==0.4.1.post2 | Complied env doesn’t match |
RuntimeError: Error(s) in loading state_dict for ResNet: | load_state_dict() | model.load_state_dict( checkpoint[‘state_dict’], strict=False) | version not match |
AssertionError: Invalid device id | using |