Implement getting layer, weights and biases

This commit is contained in:
2024-04-16 19:09:41 +02:00
parent f4ae45f867
commit 9fb9d7e8e1
7 changed files with 77 additions and 5 deletions

View File

@@ -43,6 +43,13 @@ class Dense : public WeightedLayer {
*/
void setWeights(const float* weights);
/**
* @brief Get the weights of the layer
*
* @return Vector of weights
*/
std::vector<float> getWeights();
/**
* @brief Set the biases of the layer
*
@@ -50,6 +57,13 @@ class Dense : public WeightedLayer {
*/
void setBiases(const float* biases);
/**
* @brief Get the biases of the layer
*
* @return Vector of biases
*/
std::vector<float> getBiases();
private:
unsigned int inputSize;
unsigned int outputSize;