Skip to content

Commit 6bb9a51

Browse files
authored
Merge pull request #2716 from Trusted-AI/dependabot/pip/torch-2.8.0
Bump torch from 2.7.1 to 2.8.0
2 parents 0116171 + d85b9f3 commit 6bb9a51

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/ci-legacy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
python: '3.10'
3535
tensorflow: 2.18.1
3636
keras: 3.10.0
37-
torch: 2.7.0
38-
torchvision: 0.22.0
39-
torchaudio: 2.7.0
37+
torch: 2.8.0
38+
torchvision: 0.23.0
39+
torchaudio: 2.8.0
4040
scikit-learn: 1.6.1
4141

4242
name: Run ${{ matrix.module }} ${{ matrix.name }} Tests

.github/workflows/ci-pytorch.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
include:
31-
- name: PyTorch 2.6.0 (Python 3.10)
32-
framework: pytorch
33-
python: '3.10'
34-
torch: 2.6.0
35-
torchvision: 0.21.0
36-
torchaudio: 2.6.0
3731
- name: PyTorch 2.7.1 (Python 3.10)
3832
framework: pytorch
3933
python: '3.10'
4034
torch: 2.7.1
4135
torchvision: 0.22.1
4236
torchaudio: 2.7.1
37+
- name: PyTorch 2.8.0 (Python 3.10)
38+
framework: pytorch
39+
python: '3.10'
40+
torch: 2.8.0
41+
torchvision: 0.23.0
42+
torchaudio: 2.8.0
4343

4444
name: ${{ matrix.name }}
4545
steps:

art/estimators/certification/deep_z/pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def concrete_forward(self, in_x: np.ndarray | "torch.Tensor") -> "torch.Tensor":
169169
# as reshapes are not modules we infer when the reshape from convolutional to dense occurs
170170
if self.reshape_op_num == op_num:
171171
x = x.reshape((x.shape[0], -1))
172-
x = op.concrete_forward(x)
172+
x = op.concrete_forward(x) # type: ignore
173173
return x
174174

175175
def set_forward_mode(self, mode: str) -> None:

art/estimators/certification/interval/pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def concrete_forward(self, in_x: np.ndarray | "torch.Tensor") -> "torch.Tensor":
179179
if isinstance(op, PyTorchIntervalConv2D) and self.forward_mode == "attack":
180180
x = op.conv_forward(x)
181181
else:
182-
x = op.concrete_forward(x)
182+
x = op.concrete_forward(x) # type: ignore
183183
return x
184184

185185
def set_forward_mode(self, mode: str) -> None:

requirements_test.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ tensorflow==2.18.1
2828
keras==3.10.0
2929

3030
# PyTorch
31-
torch==2.7.1
32-
torchaudio==2.7.1
33-
torchvision==0.22.1
31+
torch==2.8.0
32+
torchaudio==2.8.0
33+
torchvision==0.23.0
3434

3535
# PyTorch image transformers
3636
timm==1.0.19

0 commit comments

Comments
 (0)