modeld: delete wide_frame in model_free (#25562)

This commit is contained in:
Dean Lee
2022-08-27 02:19:05 +08:00
committed by GitHub
parent 715eabf733
commit 68b1dbc0ea
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -97,6 +97,7 @@ ModelOutput* model_eval_frame(ModelState* s, VisionBuf* buf, VisionBuf* wbuf,
void model_free(ModelState* s) {
delete s->frame;
delete s->wide_frame;
}
void fill_lead(cereal::ModelDataV2::LeadDataV3::Builder lead, const ModelOutputLeads &leads, int t_idx, float prob_t) {
+2 -2
View File
@@ -253,8 +253,8 @@ constexpr int NET_OUTPUT_SIZE = OUTPUT_SIZE + TEMPORAL_SIZE;
// TODO: convert remaining arrays to std::array and update model runners
struct ModelState {
ModelFrame *frame;
ModelFrame *wide_frame;
ModelFrame *frame = nullptr;
ModelFrame *wide_frame = nullptr;
std::array<float, NET_OUTPUT_SIZE> output = {};
std::unique_ptr<RunModel> m;
#ifdef DESIRE