Skip to content

Commit 57b6cf8

Browse files
authored
continue to fix Benchmark CI issue secretflow#968 (secretflow#979)
# Pull Request ## What problem does this PR solve? Issue Number: Fixed secretflow#968 ## Possible side effects? - Performance: - Backward compatibility:
1 parent ab4dbad commit 57b6cf8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.circleci/benchmark-config.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ jobs:
4444
mv spu .spu
4545
# TODO: run all stax_nn models with different optimizers
4646
docker run --rm --mount type=bind,source="$(pwd)",target=/home/admin/dev/ --network nn-benchmark secretflow/ubuntu-base-ci:latest \
47-
"python3 -m pip install -U pip && \
47+
"python3 -m pip install --upgrade pip && \
4848
python3 -m pip install spu && \
4949
cd /home/admin/dev/ && \
50-
python3 -m pip install -r requirements-dev.txt && \
50+
python3 -m pip install -r requirements.txt && \
51+
python3 -m pip install scikit-learn tensorflow keras tensorflow_datasets && \
52+
python3 -m pip install protobuf==5.27.3 && \
5153
export PYTHONPATH="${PWD}:$PYTHONPATH" && \
5254
bash .circleci/run-nn.sh" | tee benchmark_results.log
5355
- run:

examples/python/ml/stax_nn/stax_nn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from keras.datasets import cifar10
3535
from sklearn.metrics import accuracy_score
3636

37-
import examples.python.ml.stax_nn.models as models
37+
import models
3838
import spu.utils.distributed as ppd
3939

4040
parser = argparse.ArgumentParser(description='distributed driver.')

0 commit comments

Comments
 (0)