Conv2DTranspose
class Conv2DTranspose(filters: Int, kernelSize: IntArray, strides: IntArray, dilations: IntArray, activation: Activations, kernelInitializer: Initializer, biasInitializer: Initializer, kernelRegularizer: Regularizer?, biasRegularizer: Regularizer?, activityRegularizer: Regularizer?, padding: ConvPadding, outputPadding: IntArray?, useBias: Boolean, name: String) : ConvTranspose, NoGradients
Content copied to clipboard
2D convolution transpose layer.
This is an operation going in the opposite direction of a normal convolution: it transforms a tensor shaped like an output of some convolution into tensor that has the shape of the input.
This layer expects input data of size (N, H, W, C)
where
N - batch size
H - height
W - width
C - number of channels
Note: dilation values greater than 1 are not supported on cpu (see https://github.com/tensorflow/tensorflow/issues/28264).
Since
0.4
Parameters
name
custom layer name
Constructors
Conv2DTranspose
Link copied to clipboard
fun Conv2DTranspose(filters: Int = 3, kernelSize: Int = 3, strides: Int = 1, dilations: Int = 1, activation: Activations = Activations.Relu, kernelInitializer: Initializer = HeNormal(), biasInitializer: Initializer = HeUniform(), kernelRegularizer: Regularizer? = null, biasRegularizer: Regularizer? = null, activityRegularizer: Regularizer? = null, padding: ConvPadding = ConvPadding.SAME, outputPadding: IntArray? = null, useBias: Boolean = true, name: String = "")
Content copied to clipboard
Conv2DTranspose
Link copied to clipboard
fun Conv2DTranspose(filters: Int = 3, kernelSize: IntArray = intArrayOf(3, 3), strides: IntArray = intArrayOf(1, 1, 1, 1), dilations: IntArray = intArrayOf(1, 1, 1, 1), activation: Activations = Activations.Relu, kernelInitializer: Initializer = HeNormal(), biasInitializer: Initializer = HeUniform(), kernelRegularizer: Regularizer? = null, biasRegularizer: Regularizer? = null, activityRegularizer: Regularizer? = null, padding: ConvPadding = ConvPadding.SAME, outputPadding: IntArray? = null, useBias: Boolean = true, name: String = "")
Content copied to clipboard
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
dimensions
Link copied to clipboard
hasActivation
Link copied to clipboard
inboundLayers
Link copied to clipboard
kernelInitializer
Link copied to clipboard
kernelRegularizer
Link copied to clipboard
kernelSize
Link copied to clipboard
outboundLayers
Link copied to clipboard
outputPadding
Link copied to clipboard
outputShape
Link copied to clipboard
padding
Link copied to clipboard
paramCount
Link copied to clipboard
parentModel
Link copied to clipboard