Co-Authored-By: Mike J Innes <mike.j.innes@gmail.com>
This commit is contained in:
Dhairya Gandhi 2019-10-10 20:16:00 +05:30 committed by GitHub
parent f19066ee29
commit 623ee2c29c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ This is the basic definition of a Momentum update rule given by:
$v = ρ * v - η * Δ$
$w = w - v$
The `apply!` defines the update rules for an optimsier `opt`, given the parameters and gradients. It returns the updated gradients usually. Here, every parameter `x` is retrieved from the running state `v` and subsequently updates the state of the optimiser.
The `apply!` defines the update rules for an optimiser `opt`, given the parameters and gradients. It returns the updated gradients usually. Here, every parameter `x` is retrieved from the running state `v` and subsequently updates the state of the optimiser.
Flux internally calls on this function via the `update!` function. It shares the API with `apply!` but ensures that multiple parameters are handled gracefully. In the future, it will also be delegating immutable update operations.