Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lepton-flux authored Oct 16, 2023
1 parent 8223506 commit 3288265
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ struct Network : public net::Model<Network> {
}

net::optimizer::SGD optimizer {/*learning rate*/ 0.1};

void step() { optimizer.step(); }
};

int main() {
Expand All @@ -94,7 +92,7 @@ int main() {
std::cout << loss_function.loss() << std::endl;

loss_function.backward(); // backpropagate the gradients
network.step() // triggers the optimizer.
network.optimizer.step() // triggers the optimizer.
}

```
Expand Down

0 comments on commit 3288265

Please sign in to comment.