Depthwise separable 1D convolution.
Compat aliases for migration
See Migration guide for more details.
tf.layers.SeparableConv1D( filters, kernel_size, strides=1, padding='valid', data_format='channels_last', dilation_rate=1, depth_multiplier=1, activation=None, use_bias=True, depthwise_initializer=None, pointwise_initializer=None, bias_initializer=tf.zeros_initializer(), depthwise_regularizer=None, pointwise_regularizer=None, bias_regularizer=None, activity_regularizer=None, depthwise_constraint=None, pointwise_constraint=None, bias_constraint=None, trainable=True, name=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. Set it to None to maintain a linear activation.|
| ||Boolean, whether the layer uses a bias.|
| ||An initializer for the depthwise convolution kernel.|
| ||An initializer for the pointwise convolution kernel.|
| ||An initializer for the bias vector. If None, the default initializer will be used.|
| ||Optional regularizer for the depthwise convolution kernel.|
| ||Optional regularizer for the pointwise convolution kernel.|
| ||Optional regularizer for the bias vector.|
| ||Optional regularizer function for the output.|
| || 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.|
| ||DEPRECATED FUNCTION|
© 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.