@@ -76,10 +76,10 @@ class MaxPooling1D(_Pooling1D):
76
76
If None, it will default to `pool_size`.
77
77
padding: One of `"valid"` or `"same"` (case-insensitive).
78
78
data_format: A string,
79
- one of `channels_last` (default) or `channels_first`.
79
+ one of `" channels_last" ` (default) or `" channels_first" `.
80
80
The ordering of the dimensions in the inputs.
81
- `channels_last` corresponds to inputs with shape
82
- `(batch, steps, features)` while `channels_first`
81
+ `" channels_last" ` corresponds to inputs with shape
82
+ `(batch, steps, features)` while `" channels_first" `
83
83
corresponds to inputs with shape
84
84
`(batch, features, steps)`.
85
85
@@ -124,10 +124,10 @@ class AveragePooling1D(_Pooling1D):
124
124
If None, it will default to `pool_size`.
125
125
padding: One of `"valid"` or `"same"` (case-insensitive).
126
126
data_format: A string,
127
- one of `channels_last` (default) or `channels_first`.
127
+ one of `" channels_last" ` (default) or `" channels_first" `.
128
128
The ordering of the dimensions in the inputs.
129
- `channels_last` corresponds to inputs with shape
130
- `(batch, steps, features)` while `channels_first`
129
+ `" channels_last" ` corresponds to inputs with shape
130
+ `(batch, steps, features)` while `" channels_first" `
131
131
corresponds to inputs with shape
132
132
`(batch, features, steps)`.
133
133
@@ -228,15 +228,15 @@ class MaxPooling2D(_Pooling2D):
228
228
If None, it will default to `pool_size`.
229
229
padding: One of `"valid"` or `"same"` (case-insensitive).
230
230
data_format: A string,
231
- one of `channels_last` (default) or `channels_first`.
231
+ one of `" channels_last" ` (default) or `" channels_first" `.
232
232
The ordering of the dimensions in the inputs.
233
- `channels_last` corresponds to inputs with shape
234
- `(batch, height, width, channels)` while `channels_first`
233
+ `" channels_last" ` corresponds to inputs with shape
234
+ `(batch, height, width, channels)` while `" channels_first" `
235
235
corresponds to inputs with shape
236
236
`(batch, channels, height, width)`.
237
237
It defaults to the `image_data_format` value found in your
238
238
Keras config file at `~/.keras/keras.json`.
239
- If you never set it, then it will be "channels_last".
239
+ If you never set it, then it will be ` "channels_last"` .
240
240
241
241
# Input shape
242
242
- If `data_format='channels_last'`:
@@ -273,7 +273,7 @@ class AveragePooling2D(_Pooling2D):
273
273
"""Average pooling operation for spatial data.
274
274
275
275
# Arguments
276
- pool_size: integer or tuple of 2 integers,
276
+ pool_size: Integer or tuple of 2 integers,
277
277
factors by which to downscale (vertical, horizontal).
278
278
(2, 2) will halve the input in both spatial dimension.
279
279
If only one integer is specified, the same window length
@@ -283,15 +283,15 @@ class AveragePooling2D(_Pooling2D):
283
283
If None, it will default to `pool_size`.
284
284
padding: One of `"valid"` or `"same"` (case-insensitive).
285
285
data_format: A string,
286
- one of `channels_last` (default) or `channels_first`.
286
+ one of `" channels_last" ` (default) or `" channels_first" `.
287
287
The ordering of the dimensions in the inputs.
288
- `channels_last` corresponds to inputs with shape
289
- `(batch, height, width, channels)` while `channels_first`
288
+ `" channels_last" ` corresponds to inputs with shape
289
+ `(batch, height, width, channels)` while `" channels_first" `
290
290
corresponds to inputs with shape
291
291
`(batch, channels, height, width)`.
292
292
It defaults to the `image_data_format` value found in your
293
293
Keras config file at `~/.keras/keras.json`.
294
- If you never set it, then it will be "channels_last".
294
+ If you never set it, then it will be ` "channels_last"` .
295
295
296
296
# Input shape
297
297
- If `data_format='channels_last'`:
@@ -387,21 +387,22 @@ class MaxPooling3D(_Pooling3D):
387
387
"""Max pooling operation for 3D data (spatial or spatio-temporal).
388
388
389
389
# Arguments
390
- pool_size: tuple of 3 integers,
390
+ pool_size: Integer or tuple of 3 integers,
391
391
factors by which to downscale (dim1, dim2, dim3).
392
392
(2, 2, 2) will halve the size of the 3D input in each dimension.
393
- strides: tuple of 3 integers, or None. Strides values.
393
+ strides: Integer, tuple of 3 integers, or None. Strides values.
394
+ If None, it will default to `pool_size`.
394
395
padding: One of `"valid"` or `"same"` (case-insensitive).
395
396
data_format: A string,
396
- one of `channels_last` (default) or `channels_first`.
397
+ one of `" channels_last" ` (default) or `" channels_first" `.
397
398
The ordering of the dimensions in the inputs.
398
- `channels_last` corresponds to inputs with shape
399
+ `" channels_last" ` corresponds to inputs with shape
399
400
`(batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)`
400
- while `channels_first` corresponds to inputs with shape
401
+ while `" channels_first" ` corresponds to inputs with shape
401
402
`(batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)`.
402
403
It defaults to the `image_data_format` value found in your
403
404
Keras config file at `~/.keras/keras.json`.
404
- If you never set it, then it will be "channels_last".
405
+ If you never set it, then it will be ` "channels_last"` .
405
406
406
407
# Input shape
407
408
- If `data_format='channels_last'`:
@@ -437,21 +438,22 @@ class AveragePooling3D(_Pooling3D):
437
438
"""Average pooling operation for 3D data (spatial or spatio-temporal).
438
439
439
440
# Arguments
440
- pool_size: tuple of 3 integers,
441
+ pool_size: Integer or tuple of 3 integers,
441
442
factors by which to downscale (dim1, dim2, dim3).
442
443
(2, 2, 2) will halve the size of the 3D input in each dimension.
443
- strides: tuple of 3 integers, or None. Strides values.
444
+ strides: Integer, tuple of 3 integers, or None. Strides values.
445
+ If None, it will default to `pool_size`.
444
446
padding: One of `"valid"` or `"same"` (case-insensitive).
445
447
data_format: A string,
446
- one of `channels_last` (default) or `channels_first`.
448
+ one of `" channels_last" ` (default) or `" channels_first" `.
447
449
The ordering of the dimensions in the inputs.
448
- `channels_last` corresponds to inputs with shape
450
+ `" channels_last" ` corresponds to inputs with shape
449
451
`(batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)`
450
- while `channels_first` corresponds to inputs with shape
452
+ while `" channels_first" ` corresponds to inputs with shape
451
453
`(batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)`.
452
454
It defaults to the `image_data_format` value found in your
453
455
Keras config file at `~/.keras/keras.json`.
454
- If you never set it, then it will be "channels_last".
456
+ If you never set it, then it will be ` "channels_last"` .
455
457
456
458
# Input shape
457
459
- If `data_format='channels_last'`:
@@ -513,10 +515,10 @@ class GlobalAveragePooling1D(_GlobalPooling1D):
513
515
514
516
# Arguments
515
517
data_format: A string,
516
- one of `channels_last` (default) or `channels_first`.
518
+ one of `" channels_last" ` (default) or `" channels_first" `.
517
519
The ordering of the dimensions in the inputs.
518
- `channels_last` corresponds to inputs with shape
519
- `(batch, steps, features)` while `channels_first`
520
+ `" channels_last" ` corresponds to inputs with shape
521
+ `(batch, steps, features)` while `" channels_first" `
520
522
corresponds to inputs with shape
521
523
`(batch, features, steps)`.
522
524
@@ -559,10 +561,10 @@ class GlobalMaxPooling1D(_GlobalPooling1D):
559
561
560
562
# Arguments
561
563
data_format: A string,
562
- one of `channels_last` (default) or `channels_first`.
564
+ one of `" channels_last" ` (default) or `" channels_first" `.
563
565
The ordering of the dimensions in the inputs.
564
- `channels_last` corresponds to inputs with shape
565
- `(batch, steps, features)` while `channels_first`
566
+ `" channels_last" ` corresponds to inputs with shape
567
+ `(batch, steps, features)` while `" channels_first" `
566
568
corresponds to inputs with shape
567
569
`(batch, features, steps)`.
568
570
@@ -614,15 +616,15 @@ class GlobalAveragePooling2D(_GlobalPooling2D):
614
616
615
617
# Arguments
616
618
data_format: A string,
617
- one of `channels_last` (default) or `channels_first`.
619
+ one of `" channels_last" ` (default) or `" channels_first" `.
618
620
The ordering of the dimensions in the inputs.
619
- `channels_last` corresponds to inputs with shape
620
- `(batch, height, width, channels)` while `channels_first`
621
+ `" channels_last" ` corresponds to inputs with shape
622
+ `(batch, height, width, channels)` while `" channels_first" `
621
623
corresponds to inputs with shape
622
624
`(batch, channels, height, width)`.
623
625
It defaults to the `image_data_format` value found in your
624
626
Keras config file at `~/.keras/keras.json`.
625
- If you never set it, then it will be "channels_last".
627
+ If you never set it, then it will be ` "channels_last"` .
626
628
627
629
# Input shape
628
630
- If `data_format='channels_last'`:
@@ -649,15 +651,15 @@ class GlobalMaxPooling2D(_GlobalPooling2D):
649
651
650
652
# Arguments
651
653
data_format: A string,
652
- one of `channels_last` (default) or `channels_first`.
654
+ one of `" channels_last" ` (default) or `" channels_first" `.
653
655
The ordering of the dimensions in the inputs.
654
- `channels_last` corresponds to inputs with shape
655
- `(batch, height, width, channels)` while `channels_first`
656
+ `" channels_last" ` corresponds to inputs with shape
657
+ `(batch, height, width, channels)` while `" channels_first" `
656
658
corresponds to inputs with shape
657
659
`(batch, channels, height, width)`.
658
660
It defaults to the `image_data_format` value found in your
659
661
Keras config file at `~/.keras/keras.json`.
660
- If you never set it, then it will be "channels_last".
662
+ If you never set it, then it will be ` "channels_last"` .
661
663
662
664
# Input shape
663
665
- If `data_format='channels_last'`:
@@ -709,15 +711,15 @@ class GlobalAveragePooling3D(_GlobalPooling3D):
709
711
710
712
# Arguments
711
713
data_format: A string,
712
- one of `channels_last` (default) or `channels_first`.
714
+ one of `" channels_last" ` (default) or `" channels_first" `.
713
715
The ordering of the dimensions in the inputs.
714
- `channels_last` corresponds to inputs with shape
716
+ `" channels_last" ` corresponds to inputs with shape
715
717
`(batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)`
716
- while `channels_first` corresponds to inputs with shape
718
+ while `" channels_first" ` corresponds to inputs with shape
717
719
`(batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)`.
718
720
It defaults to the `image_data_format` value found in your
719
721
Keras config file at `~/.keras/keras.json`.
720
- If you never set it, then it will be "channels_last".
722
+ If you never set it, then it will be ` "channels_last"` .
721
723
722
724
# Input shape
723
725
- If `data_format='channels_last'`:
@@ -744,15 +746,15 @@ class GlobalMaxPooling3D(_GlobalPooling3D):
744
746
745
747
# Arguments
746
748
data_format: A string,
747
- one of `channels_last` (default) or `channels_first`.
749
+ one of `" channels_last" ` (default) or `" channels_first" `.
748
750
The ordering of the dimensions in the inputs.
749
- `channels_last` corresponds to inputs with shape
751
+ `" channels_last" ` corresponds to inputs with shape
750
752
`(batch, spatial_dim1, spatial_dim2, spatial_dim3, channels)`
751
- while `channels_first` corresponds to inputs with shape
753
+ while `" channels_first" ` corresponds to inputs with shape
752
754
`(batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)`.
753
755
It defaults to the `image_data_format` value found in your
754
756
Keras config file at `~/.keras/keras.json`.
755
- If you never set it, then it will be "channels_last".
757
+ If you never set it, then it will be ` "channels_last"` .
756
758
757
759
# Input shape
758
760
- If `data_format='channels_last'`:
0 commit comments