Skip to content

Commit

Permalink
Adjust CodeFlare SDK tests to run on FIPS
Browse files Browse the repository at this point in the history
  • Loading branch information
oksanabaza authored and openshift-merge-bot[bot] committed Sep 18, 2024
1 parent 6e895a8 commit 63344c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/e2e/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os

import torch
import torchvision.datasets.utils as utils
import requests
from pytorch_lightning import LightningModule, Trainer
from pytorch_lightning.callbacks.progress import TQDMProgressBar
Expand Down Expand Up @@ -138,6 +139,11 @@ def configure_optimizers(self):
####################

def prepare_data(self):
def check_md5(fpath, md5=None):
return True

utils.check_md5 = check_md5

# download
print("Downloading MNIST dataset...")

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/mnist_pip_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytorch_lightning==1.9.5
torchmetrics==0.9.1
torchvision==0.12.0
torchvision==0.19.0
minio

0 comments on commit 63344c5

Please sign in to comment.