Show / Hide Table of Contents

Class SeparableConv1D

Depthwise separable 1D convolution. Separable convolutions consist in first performing a depthwise spatial convolution(which acts on each input channel separately) followed by a pointwise convolution which mixes together the resulting output channels.The depth_multiplier argument controls how many output channels are generated per input channel in the depthwise step. Intuitively, separable convolutions can be understood as a way to factorize a convolution kernel into two smaller kernels, or as an extreme version of an Inception block.

Inheritance
System.Object
Keras
Base
BaseLayer
SeparableConv1D
Implements
System.IDisposable
Inherited Members
BaseLayer.Set(BaseLayer[])
Base.Parameters
Base.None
Base.Init()
Base.ToPython()
Base.InvokeStaticMethod(Object, String, Dictionary<String, Object>)
Base.InvokeMethod(String, Dictionary<String, Object>)
Base.Item[String]
Keras.Instance
Keras.keras
Keras.keras2onnx
Keras.tfjs
Keras.Dispose()
Keras.ToTuple(Array)
Keras.ToList(Array)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Keras.Layers
Assembly: Keras.dll
Syntax
public class SeparableConv1D : BaseLayer, IDisposable

Constructors

| Improve this Doc View Source

SeparableConv1D(Int32, Int32, Int32, String, String, Int32, Int32, String, Boolean, String, String, String, String, String, String, String, String, String, String, Shape)

Initializes a new instance of the SeparableConv1D class.

Declaration
public SeparableConv1D(int filters, int kernel_size, int strides = 1, string padding = "valid", string data_format = "channels_last", int dilation_rate = 1, int depth_multiplier = 1, string activation = "", bool use_bias = true, string depthwise_initializer = "glorot_uniform", string pointwise_initializer = "glorot_uniform", string bias_initializer = "zeros", string depthwise_regularizer = "", string pointwise_regularizer = "", string bias_regularizer = "", string activity_regularizer = "", string depthwise_constraint = "", string pointwise_constraint = "", string bias_constraint = "", Shape input_shape = null)
Parameters
Type Name Description
System.Int32 filters

Integer, the dimensionality of the output space (i.e. the number of output filters in the convolution).

System.Int32 kernel_size

An integer or tuple/list of single integer, specifying the length of the 1D convolution window.

System.Int32 strides

An integer or tuple/list of single integer, specifying the stride length of the convolution. Specifying any stride value != 1 is incompatible with specifying any dilation_rate value != 1.

System.String padding

one of "valid" or "same" (case-insensitive).

System.String data_format

A string, one of "channels_last" or "channels_first". The ordering of the dimensions in the inputs. "channels_last" corresponds to inputs with shape (batch, steps, channels) while "channels_first" corresponds to inputs with shape (batch, channels, steps).

System.Int32 dilation_rate

An integer or tuple/list of a single integer, specifying the dilation rate to use for dilated convolution. Currently, specifying any dilation_rate value != 1 is incompatible with specifying any strides value != 1.

System.Int32 depth_multiplier

The number of depthwise convolution output channels for each input channel. The total number of depthwise convolution output channels will be equal to filters_in * depth_multiplier.

System.String activation

Activation function to use (see activations). If you don't specify anything, no activation is applied (ie. "linear" activation: a(x) = x).

System.Boolean use_bias

Boolean, whether the layer uses a bias vector.

System.String depthwise_initializer

Initializer for the depthwise kernel matrix (see initializers).

System.String pointwise_initializer

Initializer for the pointwise kernel matrix (see initializers).

System.String bias_initializer

Initializer for the bias vector (see initializers).

System.String depthwise_regularizer

Regularizer function applied to the depthwise kernel matrix (see regularizer).

System.String pointwise_regularizer

Regularizer function applied to the pointwise kernel matrix (see regularizer).

System.String bias_regularizer

Regularizer function applied to the bias vector (see regularizer).

System.String activity_regularizer

Regularizer function applied to the output of the layer (its "activation"). (see regularizer).

System.String depthwise_constraint

Constraint function applied to the depthwise kernel matrix (see constraints).

System.String pointwise_constraint

Constraint function applied to the pointwise kernel matrix (see constraints).

System.String bias_constraint

Constraint function applied to the bias vector (see constraints).

Shape input_shape

3D tensor with shape: (batch, channels, steps) if data_format is "channels_first" or 3D tensor with shape: (batch, steps, channels) if data_format is "channels_last".

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX