diff --git a/selfdrive/modeld/runners/snpemodel.cc b/selfdrive/modeld/runners/snpemodel.cc index 5ed2d1270e..15c1db0086 100644 --- a/selfdrive/modeld/runners/snpemodel.cc +++ b/selfdrive/modeld/runners/snpemodel.cc @@ -75,12 +75,6 @@ SNPEModel::SNPEModel(const std::string path, float *_output, size_t _output_size std::vector output_strides = {output_size * sizeof(float), sizeof(float)}; output_buffer = ub_factory.createUserBuffer(output, output_size * sizeof(float), output_strides, &ub_encoding_float); output_map.add(output_tensor_name, output_buffer.get()); - -#ifdef USE_THNEED - if (snpe_runtime == zdl::DlSystem::Runtime_t::GPU) { - thneed.reset(new Thneed()); - } -#endif } void SNPEModel::addInput(const std::string name, float *buffer, int size) { diff --git a/selfdrive/modeld/runners/snpemodel.h b/selfdrive/modeld/runners/snpemodel.h index 559b15f8b6..86b2c86084 100644 --- a/selfdrive/modeld/runners/snpemodel.h +++ b/selfdrive/modeld/runners/snpemodel.h @@ -17,10 +17,6 @@ #include "selfdrive/modeld/runners/runmodel.h" -#ifdef USE_THNEED -#include "selfdrive/modeld/thneed/thneed.h" -#endif - struct SNPEModelInput : public ModelInput { std::unique_ptr snpe_buffer; @@ -37,11 +33,6 @@ public: void addInput(const std::string name, float *buffer, int size); void execute(); -#ifdef USE_THNEED - std::unique_ptr thneed; - bool thneed_recorded = false; -#endif - private: std::string model_data;