Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of Normalizations #14

Merged
merged 30 commits into from
Mar 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c30b75a
edited buildfile for normalizations. Implemented GroupNorm,InstanceNo…
Smokrow Jan 15, 2019
0e7674b
Resolved Comments
Smokrow Jan 17, 2019
65a5495
found bug in normalizations init
Smokrow Feb 9, 2019
892110c
minor changes
Smokrow Feb 10, 2019
57c60a7
Merge remote-tracking branch 'upstream/master' into dev/tests
Smokrow Feb 10, 2019
d5beb61
added function for easy testing.
Smokrow Feb 10, 2019
7a361ce
clean up
Smokrow Feb 10, 2019
2c174fc
found bug in BUILD File
Smokrow Feb 13, 2019
7c32461
fixed signature bug and added tests
Smokrow Feb 17, 2019
22f3073
Merge remote-tracking branch 'upstream/master' into dev/layer_norm
Smokrow Feb 17, 2019
0b04162
Update maxout.py
Smokrow Feb 17, 2019
095d91e
small change to variable name
Smokrow Feb 17, 2019
3b6d4e6
cleaned BUILD file
Smokrow Feb 24, 2019
b288cca
cleaned docstring
Smokrow Feb 24, 2019
b7e3d77
did some refactoring
Smokrow Feb 24, 2019
55cb158
refactored call function
Smokrow Feb 26, 2019
ee55d75
Merge branch 'dev/layer_norm' of https://github.com/Smokrow/addons in…
Smokrow Mar 1, 2019
540492e
fixed BUILD file
Smokrow Mar 1, 2019
f980aa5
implemented batch_normalization from tf nn
Smokrow Mar 1, 2019
576961d
added normalization and reshape test
Smokrow Mar 4, 2019
918eeb7
added axis check
Smokrow Mar 4, 2019
d2c1afd
added manual layer test
Smokrow Mar 4, 2019
4ebd907
added tests to check normalization with numpy
Smokrow Mar 5, 2019
37244c4
Included some comments from @ppwwyyxx
Smokrow Mar 5, 2019
0669466
beautified
Smokrow Mar 5, 2019
25d5569
Merge branch 'master' into dev/layer_norm
Smokrow Mar 5, 2019
b4613ae
Update normalizations.py
Smokrow Mar 7, 2019
fcd1639
Update normalizations.py
Smokrow Mar 7, 2019
e8ddabe
Merge branch 'master' into pr/Smokrow/14
seanpmorgan Mar 9, 2019
429ded2
* Standardize formatting with project
seanpmorgan Mar 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ developments that cannot be integrated into core TensorFlow
|:----------------------- |:----------- |:---------------------------- |
| tfa.activations | Sparsemax | https://arxiv.org/abs/1602.02068 |
| tfa.image | transform | |
| tfa.layers | GroupNormalization | https://arxiv.org/abs/1803.08494 |
| tfa.layers | InstanceNormalization | https://arxiv.org/abs/1607.08022 |
| tfa.layers | LayerNormalization | https://arxiv.org/abs/1607.06450 |
| tfa.layers | Maxout | https://arxiv.org/abs/1302.4389 |
| tfa.layers | PoinareNormalize | https://arxiv.org/abs/1705.08039 |
| tfa.layers | WeightNormalization | https://arxiv.org/abs/1602.07868 |
Expand Down
17 changes: 9 additions & 8 deletions tensorflow_addons/layers/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ py_library(
"__init__.py",
"python/__init__.py",
"python/maxout.py",
"python/normalizations.py",
"python/poincare.py",
"python/sparsemax.py",
"python/wrappers.py",
Expand All @@ -29,7 +30,7 @@ py_test(
srcs_version = "PY2AND3",
deps = [
":layers_py",
],
]
)

py_test(
Expand All @@ -55,18 +56,18 @@ py_test(
srcs_version = "PY2AND3",
deps = [
":layers_py",
],
]
)

py_test(
name = "poincare_py_test",
size = "small",
name = "layers_normalizations_py_test",
size= "small",
srcs = [
"python/poincare_test.py",
"python/normalizations_test.py",
],
main = "python/poincare_test.py",
main = "python/normalizations_test.py",
Smokrow marked this conversation as resolved.
Show resolved Hide resolved
srcs_version = "PY2AND3",
deps = [
":layers_py",
],
":layers_py",
]
)
3 changes: 3 additions & 0 deletions tensorflow_addons/layers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## Contents
| Layer | Reference |
|:----------------------- |:-----------------------------|
| GroupNormalization | https://arxiv.org/abs/1803.08494 |
| InstanceNormalization | https://arxiv.org/abs/1607.08022 |
| LayerNormalization | https://arxiv.org/abs/1607.06450 |
| Maxout | https://arxiv.org/abs/1302.4389 |
| PoinareNormalize | https://arxiv.org/abs/1705.08039 |
| WeightNormalization | https://arxiv.org/abs/1602.07868 |
Expand Down
3 changes: 3 additions & 0 deletions tensorflow_addons/layers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
from __future__ import print_function

from tensorflow_addons.layers.python.maxout import Maxout
from tensorflow_addons.layers.python.normalizations import GroupNormalization
from tensorflow_addons.layers.python.normalizations import InstanceNormalization
from tensorflow_addons.layers.python.normalizations import LayerNormalization
from tensorflow_addons.layers.python.poincare import PoincareNormalize
from tensorflow_addons.layers.python.sparsemax import Sparsemax
from tensorflow_addons.layers.python.wrappers import WeightNormalization
Loading