forked from FluxML/Flux.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1524: Add identity_init r=darsnack a=DrChainsaw As discussed in FluxML#1431 (comment) Since the only information available is the dimensions, it makes the following assumptions: * 1D: A `Vector` of `zeros` (assumes bias) * 2D: An identity matrix (assumes matrix multiplication) * 2+D: A diagnoal matrix of identity kernels (assumes convolution) Not sure if there is a better description of the last one (thats just how I envision it). I don't think it is possible to create identity mappings for all layer types and if it is, then doing so probably requires that weight init gets to know the layer type. The ones which will not have an ID mapping with this weight init are the RNNs, normalization layers (don't need it) and DepthwiseConv. ### PR Checklist - [X ] Tests are added - [X ] Entry in NEWS.md - [ ] Documentation, if applicable - [ ] Final review from `@dhairyagandhi96` (for API changes). Co-authored-by: DrChainsaw <[email protected]> Co-authored-by: DrChainsaw <[email protected]> Co-authored-by: Kyle Daruwalla <[email protected]>
- Loading branch information
Showing
3 changed files
with
134 additions
and
0 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
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
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