Skip to content

Commit

Permalink
update torch dep to ^2.0 for consistency with ml4gw
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanMarx committed Feb 6, 2024
1 parent 12e664b commit bfdcf47
Show file tree
Hide file tree
Showing 3 changed files with 279 additions and 26 deletions.
2 changes: 1 addition & 1 deletion hermes/quiver/exporters/torch_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from hermes.quiver.exporters import Exporter


def get_input_names_from_script_module(m: torch.jit.ScriptModule):
def get_input_names_from_script_module(m):
graph = m.graph
input_names = [node.debugName().split(".")[0] for node in graph.inputs()]
if "self" in input_names:
Expand Down
301 changes: 277 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ requests = "^2.26.0"

# quiver optional dependencies
tensorflow = {version = "^2.3", optional = true}
torch = {version = "^1.7", optional = true}
torch = {version = "^2.0", optional = true}
google-cloud-storage = {version = "^1.38", optional = true }
nvidia-tensorrt = { version = "^8.0", optional = true, source = "ngc" }

Expand Down

0 comments on commit bfdcf47

Please sign in to comment.