Skip to content

Commit feb582e

Browse files
author
root
committed
tensorflow gpu 1.13.1
1 parent a7c4a19 commit feb582e

13 files changed

+14
-8
lines changed

examples/models/gpu_tensorflow_deep_mnist/DeepMnist.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ def __init__(self):
1515
def predict(self,X,feature_names):
1616
predictions = self.sess.run(self.y,feed_dict={self.x:X})
1717
return predictions.astype(np.float64)
18-
19-
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
1+
FROM nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04
2+
# FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
23

34
LABEL io.openshift.s2i.scripts-url="image:///s2i/bin"
45

56
RUN apt-get update -y
7+
8+
# RUN apt-get install -y python
9+
# RUN apt-get install -y python3
10+
611
RUN apt-get install -y python-pip python-dev build-essential
712
RUN apt-get install -y python3-pip python3-dev
813

@@ -12,6 +17,7 @@ WORKDIR /microservice
1217
COPY ./s2i/bin/ /s2i/bin
1318

1419
# keep install of seldon-core after the COPY to force re-build of layer
15-
RUN pip install seldon-core
20+
RUN pip3 install tensorflow-gpu==1.13.1
21+
RUN pip3 install seldon-core
1622

1723
EXPOSE 5000
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

examples/models/gpu_tensorflow_deep_mnist/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ IMAGE_VERSION=0.1
33

44

55
build_image:
6-
s2i build . joelh1996/gpu-base:0.1 ${IMAGE_NAME}:${IMAGE_VERSION}
6+
s2i build . joelh1996/gpu-base:0.4 ${IMAGE_NAME}:${IMAGE_VERSION}
77

88
push_image:
99
docker push $(IMAGE_NAME):$(IMAGE_VERSION)
@@ -12,7 +12,7 @@ push_image:
1212
.PHONY: train
1313
train:
1414
mkdir -p model
15-
python create_model.py
15+
sudo python3 create_model.py
1616

1717
.PHONY: clean
1818
clean:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
model_checkpoint_path: "deep_mnist_model"
2+
all_model_checkpoint_paths: "deep_mnist_model"
Binary file not shown.

0 commit comments

Comments
 (0)