Skip to content

Commit 5d2fb50

Browse files
committed
E2E tests: Upgrade MNIST test script dependencies
1 parent ffb0b99 commit 5d2fb50

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/openshift/api v0.0.0-20230823114715-5fdd7511b790
1212
github.com/openshift/client-go v0.0.0-20221019143426-16aed247da5c
1313
github.com/project-codeflare/appwrapper v0.27.0
14-
github.com/project-codeflare/codeflare-common v0.0.0-20240930133152-11fd6e3be6b3
14+
github.com/project-codeflare/codeflare-common v0.0.0-20241216092650-1f9ad0399709
1515
github.com/ray-project/kuberay/ray-operator v1.2.1
1616
go.uber.org/zap v1.27.0
1717
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
226226
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
227227
github.com/project-codeflare/appwrapper v0.27.0 h1:WiWw0Hi4rEXuFIEpm8nq1UqJHgVB6YtGcWzRrhRUTyE=
228228
github.com/project-codeflare/appwrapper v0.27.0/go.mod h1:7FpO90DLv0BAq4rwZtXKS9aRRfkR9RvXsj3pgYF0HtQ=
229-
github.com/project-codeflare/codeflare-common v0.0.0-20240930133152-11fd6e3be6b3 h1:Eupu9yxaGTddtoxb9SjrYJlokRHEYU5NNVRQmdXSNVs=
230-
github.com/project-codeflare/codeflare-common v0.0.0-20240930133152-11fd6e3be6b3/go.mod h1:v7XKwaDoCspsHQlWJNarO7gOpR+iumSS+c1bWs3kJOI=
229+
github.com/project-codeflare/codeflare-common v0.0.0-20241216092650-1f9ad0399709 h1:/cjC/eR9SXqP/r4x6FD1BcvAyqhmfN+jl0W53bC+1EI=
230+
github.com/project-codeflare/codeflare-common v0.0.0-20241216092650-1f9ad0399709/go.mod h1:DPSv5khRiRDFUD43SF8da+MrVQTWmxNhuKJmwSLOyO0=
231231
github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI=
232232
github.com/prometheus/client_golang v1.20.4/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
233233
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=

test/e2e/mnist.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def __init__(self, data_dir=PATH_DATASETS, hidden_size=64, learning_rate=2e-4):
7272
nn.Linear(hidden_size, self.num_classes),
7373
)
7474

75-
self.val_accuracy = Accuracy()
76-
self.test_accuracy = Accuracy()
75+
self.val_accuracy = Accuracy(task="multiclass", num_classes=10)
76+
self.test_accuracy = Accuracy(task="multiclass", num_classes=10)
7777

7878
def forward(self, x):
7979
x = self.model(x)

test/e2e/mnist_pip_requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pytorch_lightning==1.9.5
2-
torchmetrics==0.9.1
3-
torchvision==0.12.0
1+
pytorch_lightning==2.4.0
2+
torchmetrics==1.6.0
3+
torchvision==0.20.1

0 commit comments

Comments
 (0)