Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/galeone/rtf
Bring the power of the Tensorflow Python API to any language, using gRPC.
https://github.com/galeone/rtf
Last synced: about 2 months ago
JSON representation
Bring the power of the Tensorflow Python API to any language, using gRPC.
- Host: GitHub
- URL: https://github.com/galeone/rtf
- Owner: galeone
- License: apache-2.0
- Created: 2019-04-16T19:10:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-25T16:05:38.000Z (over 3 years ago)
- Last Synced: 2024-05-02T02:12:49.789Z (8 months ago)
- Language: Python
- Size: 217 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Remote Tensorflow Execution (RTF)
Bring the power of the Tensorflow Python API to any language, using gRPC.
This repository contains the code of the RTF server and client generator.
**WARNING**: experimental, unstable, WIP.
## Server
The gRPC server implements the server-side protocol. It accepts the requests of function definitions and executes them.
The execution is left to the Python interpreter and the output is streamed back to the client.### Usage
The server waits for messages and sends back the responses.
#### Requirements
Compile the proto definition is required, however the `setup.py` script takes care of everything. There are 2 options
1. `pip install -e .` to work in edit mode, with the compiled protobufs
2. `pip install .` to install the package (it compiles the proto too)
3. (future) `pip install rtf` | `pip install rtf-gpu`#### 1. Start the gRPC server
```
python -m rtf.server
```## Client stub generation
To generate the stub of a client in `DEST_DIR` use the `rtf.generate` module.
```
python -m rtf.generate --dest_dir DEST_DIR --module tensorflow --target Go```
Right now the only generator that is going to be developed is Go.