Skip to content

Commit 0e0b5c4

Browse files
authored
Revert "Rocket league model (#24869)" (#24936)
* Revert rocket league * revert ref commit * New model ref commit
1 parent 95d8517 commit 0e0b5c4

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

selfdrive/modeld/models/driving.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ struct ModelOutput {
245245

246246
constexpr int OUTPUT_SIZE = sizeof(ModelOutput) / sizeof(float);
247247
#ifdef TEMPORAL
248-
constexpr int TEMPORAL_SIZE = 512+256;
248+
constexpr int TEMPORAL_SIZE = 512;
249249
#else
250250
constexpr int TEMPORAL_SIZE = 0;
251251
#endif
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:4c2cb3a3054f3292bbe538d6b793908dc2e234c200802d41b6766d3cb51b0b44
3-
size 101662751
2+
oid sha256:027cbb1fabae369878271cb0e3505071a8bdaa07473fad9a0b2e8d695c5dc1ff
3+
size 76725611
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:96b60d0bfd1386c93b4f79195aa1c5e77b23e0250578a308ee2c58857ed5eb49
3-
size 102570834
2+
oid sha256:484976ea5bd4ddcabc82e95faf30d7311a27802c1e337472558699fa2395a499
3+
size 77472267

selfdrive/modeld/thneed/compile.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "selfdrive/modeld/thneed/thneed.h"
66
#include "system/hardware/hw.h"
77

8-
#define TEMPORAL_SIZE 512+256
8+
#define TEMPORAL_SIZE 512
99
#define DESIRE_LEN 8
1010
#define TRAFFIC_CONVENTION_LEN 2
1111

selfdrive/modeld/thneed/optimizer.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
extern map<cl_program, string> g_program_source;
1111

12-
/*static int is_same_size_image(cl_mem a, cl_mem b) {
12+
static int is_same_size_image(cl_mem a, cl_mem b) {
1313
size_t a_width, a_height, a_depth, a_array_size, a_row_pitch, a_slice_pitch;
1414
clGetImageInfo(a, CL_IMAGE_WIDTH, sizeof(a_width), &a_width, NULL);
1515
clGetImageInfo(a, CL_IMAGE_HEIGHT, sizeof(a_height), &a_height, NULL);
@@ -29,7 +29,7 @@ extern map<cl_program, string> g_program_source;
2929
return (a_width == b_width) && (a_height == b_height) &&
3030
(a_depth == b_depth) && (a_array_size == b_array_size) &&
3131
(a_row_pitch == b_row_pitch) && (a_slice_pitch == b_slice_pitch);
32-
}*/
32+
}
3333

3434
static cl_mem make_image_like(cl_context context, cl_mem val) {
3535
cl_image_format format;
@@ -138,7 +138,7 @@ int Thneed::optimize() {
138138

139139
// delete useless copy layers
140140
// saves ~0.7 ms
141-
/*if (kq[i]->name == "concatenation" || kq[i]->name == "flatten") {
141+
if (kq[i]->name == "concatenation" || kq[i]->name == "flatten") {
142142
string in = kq[i]->args[kq[i]->get_arg_num("input")];
143143
string out = kq[i]->args[kq[i]->get_arg_num("output")];
144144
if (is_same_size_image(*(cl_mem*)in.data(), *(cl_mem*)out.data())) {
@@ -148,7 +148,7 @@ int Thneed::optimize() {
148148

149149
kq.erase(kq.begin()+i); --i;
150150
}
151-
}*/
151+
}
152152

153153
// NOTE: if activations/accumulation are done in the wrong order, this will be wrong
154154

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5434b3c1696554e9a889e77f794d80cd1cb0a7ec
1+
df0ce74929dd6b5fa7a55224baefeff4bac6d785

0 commit comments

Comments
 (0)