UpSampling2D
class UpSampling2D(size: IntArray, interpolation: InterpolationMethod, name: String) : AbstractUpSampling
Content copied to clipboard
Upsampling layer for 2D input.
Repeats each row (second axis) and columns (third axis) of the input by size[0]
and size[1]
times, respectively.
Input shape: 4D tensor with shape (batch_size, rows, cols, channels)
.
Output shape: 4D tensor with shape (batch_size, rows * size[0], cols * size[1], channels)
.
Constructors
UpSampling2D
Link copied to clipboard
fun UpSampling2D(size: IntArray = intArrayOf(2, 2), interpolation: InterpolationMethod = InterpolationMethod.NEAREST, 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
hasActivation
Link copied to clipboard
inboundLayers
Link copied to clipboard
interpolation
Link copied to clipboard
Interpolation method; could be either of InterpolationMethod.NEAREST or InterpolationMethod.BILINEAR.
interpolationInternal
Link copied to clipboard
isTrainable
Link copied to clipboard
outboundLayers
Link copied to clipboard
outputShape
Link copied to clipboard
paramCount
Link copied to clipboard
parentModel
Link copied to clipboard
sizeInternal
Link copied to clipboard