Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiatln/hello_tf
https://github.com/jiatln/hello_tf
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jiatln/hello_tf
- Owner: JiatLn
- Created: 2023-08-26T03:57:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-29T09:05:07.000Z (about 1 year ago)
- Last Synced: 2023-08-29T12:07:15.416Z (about 1 year ago)
- Language: Rust
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Hello tensorflow
Learn tensorflow with rust & python
### perpare model
- install dependencies
```bash
pip install tensorflow
```- generate model
```bash
python pys/gen_model.py
```- test model with python
```bash
python pys/infer_local.py
```### rust grpc infer server
- define infer proto
- generate rust code
- implement server
- test server with rust
```bash
cargo run --bin infer_server
```### python grpc client
- install dependencies
```bash
pip install grpcio-tools
```- generate python code
```bash
cd pys
python -m grpc_tools.protoc -I ../proto --python_out=. --grpc_python_out=. ../proto/infer.proto
```- test client with python
```bash
python pys/infer_client.py
```### Python process grpc server
- generate python code
```bash
cd pys
python -m grpc_tools.protoc -I ../proto --python_out=. --grpc_python_out=. ../proto/process.proto
```