- ImuOdom model into class

- Route layer input array hard copy
- fix utils
This commit is contained in:
Francesco Gatti
2020-03-09 19:44:21 +01:00
parent cd1e1c1582
commit 6fee8d5ec5
9 changed files with 202 additions and 65 deletions
+8 -2
View File
@@ -7,9 +7,15 @@ namespace tk { namespace dnn {
Route::Route(Network *net, Layer **layers, int layers_n) : Layer(net) {
this->layers = layers;
// copy input layers
if(layers_n > MAX_LAYERS) {
FatalError("ROUTE: reached max number of input layers");
}
for(int i=0; i<layers_n; i++) {
this->layers[i] = layers[i];
}
this->layers_n = layers_n;
//get dims
output_dim.l = 1;
output_dim.c = 0;