Commit 3aa8b80
committed
fix: support torch 2.x (closes #167)
**`setup.py`**
- Loosen torch pin from ==1.13.* to >=1.13,<3
- Loosen torchvision pin from ==0.14.* to >=0.14,<1
**`src/stepcount/models.py`**
- Use keyword arg map_location= in torch.load() for torch 2.x compat1 parent eba52d7 commit 3aa8b80
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
0 commit comments