mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-20 23:53:44 +08:00
e2e39d100b
* Added cython bindings for model runners and commonmodel * Removed cython language_level=3 * loop to set CXXFLAGS for both envs
11 lines
280 B
Cython
11 lines
280 B
Cython
# distutils: language = c++
|
|
|
|
from libcpp.string cimport string
|
|
|
|
cdef extern from "selfdrive/modeld/runners/runmodel.h":
|
|
cdef cppclass RunModel:
|
|
void addInput(string, float*, int)
|
|
void setInputBuffer(string, float*, int)
|
|
void * getCLBuffer(string)
|
|
void execute()
|