public struct UpSampling1D<Scalar> : Layer where Scalar : TensorFlowFloatingPoint

An upsampling layer for 1-D inputs.

  • Declaration

    public let size: Int
  • Creates an upsampling layer.

    Declaration

    public init(size: Int)

    Parameters

    size

    The upsampling factor for timesteps.

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

    Declaration

    public func call(_ input: Tensor<Scalar>) -> Tensor<Scalar>

    Parameters

    input

    The input to the layer.

    Return Value

    The output.