You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""The :class:`SeparableConv2dLayer` class is 2D convolution with separable filters, see `tf.layers.separable_conv2d <https://www.tensorflow.org/api_docs/python/tf/layers/separable_conv2d>`__.
1157
-
1158
-
This layer has not been fully tested yet.
1159
-
1160
-
Parameters
1161
-
----------
1162
-
prev_layer : :class:`Layer`
1163
-
Previous layer with a 4D output tensor in the shape of [batch, height, width, channels].
1164
-
n_filter : int
1165
-
The number of filters.
1166
-
filter_size : tuple of int
1167
-
The filter size (height, width).
1168
-
strides : tuple of int
1169
-
The strides (height, width).
1170
-
This can be a single integer if you want to specify the same value for all spatial dimensions.
1171
-
Specifying any stride value != 1 is incompatible with specifying any dilation_rate value != 1.
1172
-
padding : str
1173
-
The type of padding algorithm: "SAME" or "VALID"
1174
-
data_format : str
1175
-
One of channels_last (Default) or channels_first.
1176
-
The order must match the input dimensions.
1177
-
channels_last corresponds to inputs with shapedata_format = 'NWHC' (batch, width, height, channels) while
1178
-
channels_first corresponds to inputs with shape [batch, channels, width, height].
1179
-
dilation_rate : int or tuple of ints
1180
-
The dilation rate of the convolution.
1181
-
It can be a single integer if you want to specify the same value for all spatial dimensions.
1182
-
Currently, specifying any dilation_rate value != 1 is incompatible with specifying any stride value != 1.
1183
-
depth_multiplier : int
1184
-
The number of depthwise convolution output channels for each input channel.
1185
-
The total number of depthwise convolution output channels will be equal to num_filters_in * depth_multiplier.
1186
-
act : activation function
1187
-
The activation function of this layer.
1188
-
use_bias : boolean
1189
-
Whether the layer uses a bias
1190
-
depthwise_initializer : initializer
1191
-
The initializer for the depthwise convolution kernel.
1192
-
pointwise_initializer : initializer
1193
-
The initializer for the pointwise convolution kernel.
1194
-
bias_initializer : initializer
1195
-
The initializer for the bias vector. If None, skip bias.
1196
-
depthwise_regularizer : regularizer
1197
-
Optional regularizer for the depthwise convolution kernel.
1198
-
pointwise_regularizer : regularizer
1199
-
Optional regularizer for the pointwise convolution kernel.
1200
-
bias_regularizer : regularizer
1201
-
Optional regularizer for the bias vector.
1202
-
activity_regularizer : regularizer
1203
-
Regularizer function for the output.
1204
-
name : str
1205
-
A unique layer name.
1206
-
1207
-
"""
1208
-
1209
-
@deprecated_alias(layer='prev_layer', end_support_version=1.9) # TODO remove this line for the 1.9 release
"""The :class:`SeparableConv1d` class is a 1D depthwise separable convolutional layer, see `tf.layers.separable_conv1d <https://www.tensorflow.org/api_docs/python/tf/layers/separable_conv1d>`__.
1805
+
1806
+
This layer performs a depthwise convolution that acts separately on channels, followed by a pointwise convolution that mixes channels.
1807
+
1808
+
Parameters
1809
+
------------
1810
+
prev_layer : :class:`Layer`
1811
+
Previous layer.
1812
+
n_filter : int
1813
+
The dimensionality of the output space (i.e. the number of filters in the convolution).
1814
+
filter_size : int
1815
+
Specifying the spatial dimensions of the filters. Can be a single integer to specify the same value for all spatial dimensions.
1816
+
strides : int
1817
+
Specifying the stride of the convolution. Can be a single integer to specify the same value for all spatial dimensions. Specifying any stride value != 1 is incompatible with specifying any dilation_rate value != 1.
1818
+
padding : str
1819
+
One of "valid" or "same" (case-insensitive).
1820
+
data_format : str
1821
+
One of channels_last (default) or channels_first. The ordering of the dimensions in the inputs. channels_last corresponds to inputs with shape (batch, height, width, channels) while channels_first corresponds to inputs with shape (batch, channels, height, width).
1822
+
dilation_rate : int
1823
+
Specifying the dilation rate to use for dilated convolution. Can be a single integer to specify the same value for all spatial dimensions. Currently, specifying any dilation_rate value != 1 is incompatible with specifying any stride value != 1.
1824
+
depth_multiplier : int
1825
+
The number of depthwise convolution output channels for each input channel. The total number of depthwise convolution output channels will be equal to num_filters_in * depth_multiplier.
1826
+
depthwise_init : initializer
1827
+
for the depthwise convolution kernel.
1828
+
pointwise_init : initializer
1829
+
For the pointwise convolution kernel.
1830
+
b_init : initializer
1831
+
For the bias vector. If None, ignore bias in the pointwise part only.
1832
+
name : a str
1833
+
A unique layer name.
1834
+
1835
+
"""
1836
+
1837
+
@deprecated_alias(layer='prev_layer', end_support_version=1.9) # TODO remove this line for the 1.9 release
"""The :class:`SeparableConv2d` class is a 2D depthwise separable convolutional layer, see `tf.layers.separable_conv2d <https://www.tensorflow.org/api_docs/python/tf/layers/separable_conv2d>`__.
0 commit comments