Allocate activation on heap

This commit is contained in:
2024-04-22 18:59:16 +02:00
parent 26cea9b12c
commit a32c737785
10 changed files with 17 additions and 15 deletions

View File

@@ -77,7 +77,7 @@ class Dense : public WeightedLayer {
std::vector<float> weights;
std::vector<float> biases;
Layers::Activation activation;
Layers::Activation* activation;
// Precompute kernel launch parameters
unsigned int forwardGridSize;