/EdgeTPUCompilerAPI

A simple python api for Google Edge TPU online compiler.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Edge TPU Compiler API

A simple python api for Google Edge TPU online compiler.

Usage

For cli:

python edge_tpu_comiler_api.py upload_tflite_model_file download_tpu_model_file -p proxy
python edge_tpu_comiler_api.py mobilenet.tflite mobilenet_tpu.tflite -p http://127.0.0.1:1080

For python:

from edge_tpu_compiler_api import compile
# The proxy defaults to None
compile(upload_tflite_model_file, download_tpu_model_file, proxy)