You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/NeuralNetwork.h
-15Lines changed: 0 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1077,59 +1077,50 @@ class NeuralNetwork
1077
1077
for (int j = 0; j < layers[i]._numberOfOutputs; j++) // because of this i wont make _numberOfOutputs/inputs private :/ or maybe.. i ll see... or i will change them to const* ... what? i've just read it again lol
1078
1078
{
1079
1079
delete[] layers[i].weights[j];
1080
-
layers[i].weights[j] = NULL;
1081
1080
}
1082
1081
#endif
1083
1082
1084
1083
// #if !defined(USE_PROGMEM)
1085
1084
#if !defined(NO_BIAS)
1086
1085
delete layers[i].bias;
1087
-
layers[i].bias = NULL;
1088
1086
#endif
1089
1087
// #endif
1090
1088
1091
1089
#if !defined(REDUCE_RAM_DELETE_OUTPUTS)
1092
1090
delete[] layers[i].outputs;
1093
-
layers[i].outputs = NULL;
1094
1091
#endif
1095
1092
1096
1093
/*
1097
1094
#if defined(REDUCE_RAM_WEIGHTS_LVL1) // && !defined(USE_PROGMEM) // no need for progmem condition because progmem is never going to be initialized with new
1098
1095
delete[] layers[i].weights;
1099
-
layers[i].weights = NULL;
1100
1096
#endif
1101
1097
*/
1102
1098
}
1103
1099
1104
1100
#if defined(REDUCE_RAM_WEIGHTS_LVL2) // && !defined(USE_PROGMEM) // no need for progmem condition because progmem is never going to be initialized with new
0 commit comments