Skip to content

Commit

Permalink
added tool for optimizing models for serving
Browse files Browse the repository at this point in the history
  • Loading branch information
cfregly committed Dec 12, 2016
1 parent d425bd3 commit a3144cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions prediction.ml/tensorflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ ENV \

ENV \
PATH=$TENSORFLOW_SERVING_HOME/bazel-bin/tensorflow_serving/model_servers/:$PATH

# This is needed if you see errors related to "no module named 'grpc.beta'"
RUN \
pip install grpcio

# Utility for optimizing/simplifying models for inference
RUN \
cd ~/serving/tensorflow \
&& bazel build tensorflow/python/tools:optimize_for_inference

EXPOSE 5678 6006 9040 9090 9091

Expand Down

0 comments on commit a3144cf

Please sign in to comment.