Skip to content

Commit

Permalink
Support torch 1.13 (#1143)
Browse files Browse the repository at this point in the history
* Bug fixes for torch 1.13

* update torch_all deps

---------

Co-authored-by: Benjamin Fineran <bfineran@users.noreply.github.com>
  • Loading branch information
corey-nm and bfineran committed Feb 14, 2023
1 parent 062715d commit a69c208
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@

_onnxruntime_deps = ["onnxruntime>=1.0.0"]
_pytorch_deps = [
"torch>=1.1.0,<=1.12.1",
"torch>=1.1.0,<=1.13.1",
"gputils",
]
_pytorch_all_deps = _pytorch_deps + [
"torchvision>=0.3.0,<=0.13",
"torchaudio<=0.12",
"torchvision>=0.3.0,<=0.13",
"torchvision>=0.3.0,<=0.14",
"torchaudio<=0.13",
"torchvision>=0.3.0,<=0.14",
]
_pytorch_vision_deps = _pytorch_deps + ["torchvision>=0.3.0,<=0.13"]
_pytorch_vision_deps = _pytorch_deps + ["torchvision>=0.3.0,<=0.14"]
_tensorflow_v1_deps = ["tensorflow<2.0.0", "tensorboard<2.0.0", "tf2onnx>=1.0.0,<1.6"]
_tensorflow_v1_gpu_deps = [
"tensorflow-gpu<2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/sparseml/pytorch/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@


_TORCH_MIN_VERSION = "1.0.0"
_TORCH_MAX_VERSION = "1.12.100" # set bug to 100 to support all future 1.9.X versions
_TORCH_MAX_VERSION = "1.13.100" # set bug to 100 to support all future 1.9.X versions


def check_torch_install(
Expand Down

0 comments on commit a69c208

Please sign in to comment.