MaxPool1D

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

時間データの最大プーリング層。

  • 宣言

    public typealias TangentVector = EmptyTangentVector
  • プーリング用のスライディング縮小ウィンドウのサイズ。

    宣言

    @noDerivative
    public let poolSize: Int
  • 時間次元のスライディング ウィンドウのストライド。

    宣言

    @noDerivative
    public let stride: Int
  • プーリングのパディング アルゴリズム。

    宣言

    @noDerivative
    public let padding: Padding
  • 最大プーリング層を作成します。

    宣言

    public init(poolSize: Int, stride: Int, padding: Padding)

    パラメーター

    poolSize

    プーリング用のスライディング縮小ウィンドウのサイズ。

    stride

    時間次元のスライディング ウィンドウのストライド。

    padding

    プーリングのパディング アルゴリズム。

  • 指定された入力にレイヤーを適用して得られた出力を返します。

    宣言

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

    パラメーター

    input

    レイヤーへの入力。

    戻り値

    出力。