|View source on GitHub|
Depthwise separable 1D convolution.
See Migration guide for more details.
tf.keras.layers.SeparableConv1D( filters, kernel_size, strides=1, padding='valid', data_format=None, dilation_rate=1, depth_multiplier=1, activation=None, use_bias=True, depthwise_initializer='glorot_uniform', pointwise_initializer='glorot_uniform', bias_initializer='zeros', depthwise_regularizer=None, pointwise_regularizer=None, bias_regularizer=None, activity_regularizer=None, depthwise_constraint=None, pointwise_constraint=None, bias_constraint=None, **kwargs )
This layer performs a depthwise convolution that acts separately on channels, followed by a pointwise convolution that mixes channels. If
use_bias is True and a bias initializer is provided, it adds a bias vector to the output. It then optionally applies an activation function to produce the final output.
| ||Integer, the dimensionality of the output space (i.e. the number of filters in the convolution).|
| ||A single integer specifying the spatial dimensions of the filters.|
| || A single integer specifying the strides of the convolution. Specifying any |
| || One of |
| || A string, one of |
| || A single integer, specifying the dilation rate to use for dilated convolution. Currently, specifying any |
| || The number of depthwise convolution output channels for each input channel. The total number of depthwise convolution output channels will be equal to |
| || Activation function to use. If you don't specify anything, no activation is applied ( see |
| ||Boolean, whether the layer uses a bias.|
| || An initializer for the depthwise convolution kernel ( see |
| || An initializer for the pointwise convolution kernel ( see |
| || An initializer for the bias vector. If None, the default initializer will be used (see |
| || Optional regularizer for the depthwise convolution kernel (see |
| || Optional regularizer for the pointwise convolution kernel (see |
| || Optional regularizer for the bias vector ( see |
| || Optional regularizer function for the output ( see |
| || Optional projection function to be applied to the depthwise kernel after being updated by an |
| || Optional projection function to be applied to the pointwise kernel after being updated by an |
| || Optional projection function to be applied to the bias after being updated by an |
| || Boolean, if |
| ||A string, the name of the layer.|
3D tensor with shape:
(batch_size, channels, steps) if data_format='channels_first' or 5D tensor with shape:
(batch_size, steps, channels) if data_format='channels_last'.
3D tensor with shape:
(batch_size, filters, new_steps) if data_format='channels_first' or 3D tensor with shape:
(batch_size, new_steps, filters) if data_format='channels_last'.
new_steps value might have changed due to padding or strides.
| A tensor of rank 3 representing |
| || when both |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.