Skip to main content

Asyncio Tensorflow Serving Communication.

Project description

aiotf

Asyncio-based Tensorflow Serving Prediction

Features

  • asyncio: better use of your cpu idle time
  • pep8 compliant: following best code standards
  • high-performance prediction: we use aio-grpc

Example

import aiotf

async def make_prediction(model_name: str, data):
  async with aiotf.AsyncTensorflowServing('localhost:9000') as client:
    predictions = await client.predict(model_name, data)

You can find more examples in the examples/ subdirectory.

Installation

$ pip install aiotf

License

MIT

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
aiotf-0.1.0-py2.py3-none-any.whl (4.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
aiotf-0.1.0.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page