Skip to content

Commit abb982d

Browse files
committed
Adjust CodeFlare SDK tests to run on FIPS
1 parent 0813065 commit abb982d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/e2e/mnist.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import os
1616

1717
import torch
18+
import torchvision.datasets.utils as utils
1819
import requests
1920
from pytorch_lightning import LightningModule, Trainer
2021
from pytorch_lightning.callbacks.progress import TQDMProgressBar
@@ -138,6 +139,11 @@ def configure_optimizers(self):
138139
####################
139140

140141
def prepare_data(self):
142+
def check_md5(fpath, md5=None):
143+
return True
144+
145+
utils.check_md5 = check_md5
146+
141147
# download
142148
print("Downloading MNIST dataset...")
143149

tests/e2e/mnist_pip_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pytorch_lightning==1.9.5
22
torchmetrics==0.9.1
3-
torchvision==0.12.0
3+
torchvision==0.19.0
44
minio

0 commit comments

Comments
 (0)