mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-11 04:12:07 +08:00
6d316f2bc7
date: 2024-06-11T01:36:39 master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
15 lines
362 B
Cython
15 lines
362 B
Cython
# distutils: language = c++
|
|
|
|
from libcpp.string cimport string
|
|
|
|
cdef extern from "selfdrive/modeld/runners/runmodel.h":
|
|
cdef int USE_CPU_RUNTIME
|
|
cdef int USE_GPU_RUNTIME
|
|
cdef int USE_DSP_RUNTIME
|
|
|
|
cdef cppclass RunModel:
|
|
void addInput(string, float*, int)
|
|
void setInputBuffer(string, float*, int)
|
|
void * getCLBuffer(string)
|
|
void execute()
|