-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core/Rules: Better/Exposed Stabilizer
- exposes a `stabilizer` parameter for all built-in rules other than epsilon - implements Stabilizer as a class - create a stabilizer function from the stabilizer/epsilon value, for which Stabilizer.ensure is implemented, for both the `Epsilon` rule and all other rules that apply - stabilizer/epsilon can be a float/int, in which case a Stabilizer object will be instantiated with the appropriate epsilon value - stabilizer/epsilon can be callable, in which case the callable itself will be used as a stabilizer - add batchnorm to the `layer_map_base`, and make `layer_map_base` a function such that `stabilizer` for Norm() may be passed - added tests for `Stabilizer` - added explanations for the use of the new `stabilizer` and `epsilon` arguments to `how-to/use-rules-composites-and-canonizers.rst` - BatchNorm is now ignored by default instead of using its gradient (!!) the reason for this choice is that it is a better choice than using the gradient
- Loading branch information
Showing
5 changed files
with
407 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.