UpSampling2D

@frozen
public struct UpSampling2D<Scalar> : ParameterlessLayer where Scalar : TensorFlowFloatingPoint

An upsampling layer for 2-D inputs.

  • Declaration

    public typealias TangentVector = EmptyTangentVector
  • Declaration

    @noDerivative
    public let size: Int
  • Creates an upsampling layer.

    Declaration

    public init(size: Int)

    Parameters

    size

    The upsampling factor for rows and columns.

  • Returns the output obtained from applying the layer to the given input.

    Declaration

    @differentiable
    public func forward(_ input: Tensor<Scalar>) -> Tensor<Scalar>

    Parameters

    input

    The input to the layer.

    Return Value

    The output.