Skip to content

Commit 790e1ec

Browse files
authored
Merge pull request #241 from jrzaurin/fix-broken-tests
limit the torch version to <2.6 for now
2 parents 4187bbd + f32b54a commit 790e1ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytorch_widedeep/losses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def _compute_cont_loss(self, x_cont_and_cont_) -> Tensor:
896896

897897
@staticmethod
898898
def _get_device(
899-
x_and_x_: Union[List[Tuple[Tensor, Tensor]], Tuple[Tensor, Tensor]]
899+
x_and_x_: Union[List[Tuple[Tensor, Tensor]], Tuple[Tensor, Tensor]],
900900
):
901901
if isinstance(x_and_x_, tuple):
902902
device = x_and_x_[0].device

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ gensim
66
spacy
77
opencv-contrib-python>=4.9.0.80
88
tqdm
9-
torch >= 2.0.0
9+
torch >= 2.0.0, <2.6.0
1010
torchvision >= 0.15.0
1111
einops
1212
wrapt

0 commit comments

Comments
 (0)