1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00
dockerfiles/tensorflow/serving
2021-12-10 18:23:45 +08:00
..
docker-compose.yml add tensorflow/serving 2021-12-10 18:23:45 +08:00
README.md add tensorflow/serving 2021-12-10 18:23:45 +08:00

tenserflow/serving

TensorFlow Serving is a flexible, high-performance serving system for machine learning models, designed for production environments.

up and running

$ mkdir -p data
$ curl -sSL https://github.com/tensorflow/serving/archive/refs/heads/master.tar.gz | tar xz -C data serving/tensorflow_serving/servables/tensorflow/testdata --strip 5
$ docker-compose up -d
$ curl -X POST http://localhost:8501/v1/models/half_plus_two:predict -d '{"instances": [1.0, 2.0, 5.0]}'
{ "predictions": [2.5, 3.0, 4.5] }