shunk031 / libtorch-gin-api-server

High-speed Deep learning API Server with Libtorch (C++) and Gin (Golang)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

High-speed Deep learning API Server with Libtorch (C++) and Gin (Golang)

GitHub license Golang 1.9 Python 3.7

Convert your model to torch script

$ python convert_to_torch_script_via_tracing.py
# converted model is saved to assets/model.pt

How to Run

$ docker-compose up api

Credits

Parts of the implementation is borrowed from rai-project/go-pytorch.

About

High-speed Deep learning API Server with Libtorch (C++) and Gin (Golang)

License:MIT License


Languages

Language:Go 65.8%Language:C++ 14.4%Language:Python 14.1%Language:C 3.8%Language:HTML 1.9%