Skip to content

Commit 0449865

Browse files
committed
update minimum version for nested tensor of NaViT
1 parent 6693d47 commit 0449865

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/python-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python -m pip install --upgrade pip
2929
python -m pip install pytest
3030
python -m pip install wheel
31-
python -m pip install torch==2.4.0 torchvision==0.19.0 --index-url https://download.pytorch.org/whl/cpu
31+
python -m pip install torch==2.5.0 torchvision==0.19.0 --index-url https://download.pytorch.org/whl/cpu
3232
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3333
- name: Test with pytest
3434
run: |

vit_pytorch/na_vit_nested_tensor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import torch
77
import packaging.version as pkg_version
88

9-
if pkg_version.parse(torch.__version__) < pkg_version.parse('2.4'):
10-
print('nested tensor NaViT was tested on pytorch 2.4')
9+
if pkg_version.parse(torch.__version__) < pkg_version.parse('2.5'):
10+
print('nested tensor NaViT was tested on pytorch 2.5')
1111

1212
from torch import nn, Tensor
1313
import torch.nn.functional as F

vit_pytorch/na_vit_nested_tensor_3d.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import torch
77
import packaging.version as pkg_version
88

9-
if pkg_version.parse(torch.__version__) < pkg_version.parse('2.4'):
10-
print('nested tensor NaViT was tested on pytorch 2.4')
9+
if pkg_version.parse(torch.__version__) < pkg_version.parse('2.5'):
10+
print('nested tensor NaViT was tested on pytorch 2.5')
1111

1212
from torch import nn, Tensor
1313
import torch.nn.functional as F

0 commit comments

Comments
 (0)