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.
2 parents 250114a + 1d4f1be commit 3781228Copy full SHA for 3781228
splade/tasks/amp.py
@@ -2,7 +2,7 @@
2
3
# inspired from Colbert repo: https://github.com/stanford-futuredata/ColBERT
4
5
-PyTorch_over_1_6 = float((torch.__version__.split('.')[1])) >= 6 and float((torch.__version__.split('.')[0])) >= 1
+PyTorch_over_1_6 = float(".".join([torch.__version__.split('.')[0], torch.__version__.split('.')[1]])) >= 1.6
6
7
8
# replace this with contextlib.nullcontext if python >3.7
0 commit comments