mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-03 22:53:44 +08:00
659adb6457
date: 2024-03-17T10:14:38 master commit: 7e9a909e0e57ecb31df4c87c5b9a06b1204fd034
18 lines
443 B
C++
18 lines
443 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "selfdrive/modeld/runners/runmodel.h"
|
|
#include "selfdrive/modeld/thneed/thneed.h"
|
|
|
|
class ThneedModel : public RunModel {
|
|
public:
|
|
ThneedModel(const std::string path, float *_output, size_t _output_size, int runtime, bool use_tf8 = false, cl_context context = NULL);
|
|
void *getCLBuffer(const std::string name);
|
|
void execute();
|
|
private:
|
|
Thneed *thneed = NULL;
|
|
bool recorded;
|
|
float *output;
|
|
};
|