Skip to content

Commit 70af67c

Browse files
Merge pull request #17963 from SamuelMarks:keras.layers.convolutional-defaults-to
PiperOrigin-RevId: 536843239
2 parents 1b392bb + c7bcf63 commit 70af67c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

keras/layers/convolutional/base_depthwise_conv.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ class DepthwiseConv(Conv):
6565
`channels_first`. The ordering of the dimensions in the inputs.
6666
`channels_last` corresponds to inputs with shape `(batch_size, height,
6767
width, channels)` while `channels_first` corresponds to inputs with
68-
shape `(batch_size, channels, height, width)`. It defaults to the
69-
`image_data_format` value found in your Keras config file at
70-
`~/.keras/keras.json`. If you never set it, then it will be
71-
'channels_last'.
68+
shape `(batch_size, channels, height, width)`. If left unspecified,
69+
uses `image_data_format` value found in your Keras config file at
70+
`~/.keras/keras.json` (if exists) else 'channels_last'.
71+
Defaults to 'channels_last'.
7272
dilation_rate: An integer or tuple/list of 2 integers, specifying the
7373
dilation rate to use for dilated convolution. Currently, specifying any
7474
`dilation_rate` value != 1 is incompatible with specifying any `strides`

keras/layers/convolutional/conv1d_transpose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Conv1DTranspose(Conv1D):
5454
kernel_size: An integer length of the 1D convolution window.
5555
strides: An integer specifying the stride of the convolution along the
5656
time dimension. Specifying a stride value != 1 is incompatible with
57-
specifying a `dilation_rate` value != 1. Defaults to 1.
57+
specifying a `dilation_rate` value != 1. Defaults to `1`.
5858
padding: one of `"valid"` or `"same"` (case-insensitive).
5959
`"valid"` means no padding. `"same"` results in padding with zeros
6060
evenly to the left/right or up/down of the input such that output has

keras/layers/convolutional/conv2d.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ class Conv2D(Conv):
101101
`channels_first`. The ordering of the dimensions in the inputs.
102102
`channels_last` corresponds to inputs with shape `(batch_size, height,
103103
width, channels)` while `channels_first` corresponds to inputs with
104-
shape `(batch_size, channels, height, width)`. It defaults to the
105-
`image_data_format` value found in your Keras config file at
106-
`~/.keras/keras.json`. If you never set it, then it will be
107-
`channels_last`. Note that the `channels_first` format is currently not
108-
supported by TensorFlow on CPU.
104+
shape `(batch_size, channels, height, width)`. If left unspecified, it
105+
uses the `image_data_format` value found in your Keras config file at
106+
`~/.keras/keras.json` (if exists) else 'channels_last'.
107+
Note that the `channels_first` format is currently not
108+
supported by TensorFlow on CPU. Defaults to 'channels_last'.
109109
dilation_rate: an integer or tuple/list of 2 integers, specifying the
110110
dilation rate to use for dilated convolution. Can be a single integer to
111111
specify the same value for all spatial dimensions. Currently, specifying

0 commit comments

Comments
 (0)