mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 08:43:54 +08:00
f6885dcbec
* Revert "dmonitoringmodeld: use cl transform (#34235)" This reverts commit684b0b9d4d. * Revert "load model before calling convert_fp16_to_fp32" This reverts commit31606a7d15. * Revert "bump tinygrad" This reverts commit44f58ff758. * Revert "Tinygrad runner (#34171)" This reverts commit7b5a4fbb03. * Allow init buffer * typo
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()
|