File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
6
6
class BatchNormalization (Layer ):
7
- '''Normalize the activations of the previous layer at each batch.
7
+ '''Normalize the activations of the previous layer at each batch,
8
+ i.e. applies a transformation that maintains the mean activation
9
+ close to 0. and the activation standard deviation close to 1.
8
10
9
11
# Input shape
10
12
Arbitrary. Use the keyword argument `input_shape`
@@ -18,7 +20,13 @@ class BatchNormalization(Layer):
18
20
epsilon: small float > 0. Fuzz parameter.
19
21
mode: integer, 0 or 1.
20
22
- 0: feature-wise normalization.
21
- - 1: sample-wise normalization.
23
+ If the input has multiple feature dimensions,
24
+ each will be normalized separately
25
+ (e.g. for an image input with shape
26
+ `(channels, rows, cols)`,
27
+ each combination of a channel, row and column
28
+ will be normalized separately).
29
+ - 1: sample-wise normalization. This mode assumes a 2D input.
22
30
momentum: momentum in the computation of the
23
31
exponential average of the mean and standard deviation
24
32
of the data, for feature-wise normalization.
You can’t perform that action at this time.
0 commit comments