Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
izzat5233 committed Dec 16, 2023
1 parent a2211bb commit f6e457e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions nn/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
class nn::Network {
private:
const std::size_t size;

private:
vl_t layers;
OutputLayer outputLayer;
double alpha;
Expand Down
2 changes: 1 addition & 1 deletion wasm/network_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class NetworkController {
[[nodiscard]] std::vector<nn::vvd_t> getWeights() const {
std::vector<nn::vvd_t> weights;
weights.reserve(network->getSize());
for (std::size_t i = 0; i < weights.size(); ++i) {
for (std::size_t i = 0; i < network->getSize(); ++i) {
nn::vvd_t layerWeights;
layerWeights.reserve(network->get(i).size());
for (auto &neuron: network->get(i)) {
Expand Down

0 comments on commit f6e457e

Please sign in to comment.