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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiotf-0.1.0.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file aiotf-0.1.0.tar.gz
.
File metadata
- Download URL: aiotf-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda57a96b82ad9e163adba6785daa65ffe8627cd3248382fec31c675b0748209 |
|
MD5 | 76a30084259384588190f0d6d3a5d6ff |
|
BLAKE2b-256 | ab82a354a2744fcdf88271419e5daec7efc478ad9e092a1c9e66c0d9c4970898 |
File details
Details for the file aiotf-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: aiotf-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a0e854db3ca26770723382dd56cab73df07bbe0c1420bc528bc8a0d4beab65 |
|
MD5 | e95873e2e29a92a73d23f87a8d81c5c2 |
|
BLAKE2b-256 | 07816448a6e9a17a55ee53425d8e786e48076354466dc9cc86cd53b9e37d60df |