SeparableConv2D
class SeparableConv2D(filters: Int, kernelSize: IntArray, strides: IntArray, dilations: IntArray, activation: Activations, depthMultiplier: Int, depthwiseInitializer: Initializer, pointwiseInitializer: Initializer, biasInitializer: Initializer, depthwiseRegularizer: Regularizer?, pointwiseRegularizer: Regularizer?, biasRegularizer: Regularizer?, activityRegularizer: Regularizer?, padding: ConvPadding, useBias: Boolean, name: String) : Layer, NoGradients, ParametrizedLayer
Content copied to clipboard
2-D convolution with separable filters.
Performs a depthwise convolution that acts separately on channels followed by a pointwise convolution that mixes channels. Note that this is separability between dimensions [1, 2]
and 3
, not spatial separability between dimensions 1
and 2
.
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.
Since
0.2
Constructors
SeparableConv2D
Link copied to clipboard
fun SeparableConv2D(filters: Int = 32, kernelSize: Int = 3, strides: Int = 1, dilations: Int = 1, activation: Activations = Activations.Relu, depthMultiplier: Int = 1, depthwiseInitializer: Initializer = HeNormal(), pointwiseInitializer: Initializer = HeNormal(), biasInitializer: Initializer = HeUniform(), depthwiseRegularizer: Regularizer? = null, pointwiseRegularizer: Regularizer? = null, biasRegularizer: Regularizer? = null, activityRegularizer: Regularizer? = null, padding: ConvPadding = ConvPadding.SAME, useBias: Boolean = true, name: String = "")
Content copied to clipboard
SeparableConv2D
Link copied to clipboard
fun SeparableConv2D(filters: Int = 32, kernelSize: IntArray = intArrayOf(3, 3), strides: IntArray = intArrayOf(1, 1, 1, 1), dilations: IntArray = intArrayOf(1, 1, 1, 1), activation: Activations = Activations.Relu, depthMultiplier: Int = 1, depthwiseInitializer: Initializer = HeNormal(), pointwiseInitializer: Initializer = HeNormal(), biasInitializer: Initializer = HeUniform(), depthwiseRegularizer: Regularizer? = null, pointwiseRegularizer: Regularizer? = null, biasRegularizer: Regularizer? = null, activityRegularizer: Regularizer? = null, padding: ConvPadding = ConvPadding.SAME, useBias: Boolean = true, name: String = "")
Content copied to clipboard
Creates SeparableConv2D object.
Functions
buildFromInboundLayers
Link copied to clipboard
Extend this function to define variables in layer.
computeOutputShape
Link copied to clipboard
Computes output shape, based on inputShape and Layer type.
computeOutputShapeFromInboundLayers
Link copied to clipboard
Computes output shape, based on input shapes of inbound layers.
forward
Link copied to clipboard
Properties
activation
Link copied to clipboard
activityRegularizer
Link copied to clipboard
biasInitializer
Link copied to clipboard
biasRegularizer
Link copied to clipboard
depthMultiplier
Link copied to clipboard
depthwiseInitializer
Link copied to clipboard
depthwiseRegularizer
Link copied to clipboard
hasActivation
Link copied to clipboard
inboundLayers
Link copied to clipboard
kernelSize
Link copied to clipboard
outboundLayers
Link copied to clipboard
outputShape
Link copied to clipboard
padding
Link copied to clipboard
paramCount
Link copied to clipboard
parentModel
Link copied to clipboard
pointwiseInitializer
Link copied to clipboard
pointwiseRegularizer
Link copied to clipboard