We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aacd11 commit 4a15692Copy full SHA for 4a15692
torchpruner/model_tools.py
@@ -180,6 +180,6 @@ def replace_object_by_class(
180
181
def normalize_onnx_parameters(**kwargs):
182
torch_version = torch.__version__.split(".")
183
- if torch_version[0] > "2" or len(torch_version) > 1 and torch_version[1] >= "10":
+ if int(torch_version[0]) >= 2 or len(torch_version) > 1 and int(torch_version[1]) >= 10:
184
kwargs.pop("_retain_param_name", None)
185
return kwargs
0 commit comments