SeparableConv2D
class SeparableConv2D(filters: Long, kernelSize: LongArray, strides: LongArray, dilations: LongArray, 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
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: Long = 32, kernelSize: LongArray = longArrayOf(3, 3), strides: LongArray = longArrayOf(1, 1, 1, 1), dilations: LongArray = longArrayOf(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
biasShapeArray
Link copied to clipboard
depthMultiplier
Link copied to clipboard
depthwiseInitializer
Link copied to clipboard
depthwiseRegularizer
Link copied to clipboard
depthwiseShapeArray
Link copied to clipboard
hasActivation
Link copied to clipboard
inboundLayers
Link copied to clipboard
isTrainable
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
pointwiseShapeArray
Link copied to clipboard