Reshape

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

形状変更レイヤー。

  • 宣言

    public typealias TangentVector = EmptyTangentVector
  • ターゲットの形状。

    宣言

    @noDerivative
    public var shape: Tensor<Int32>
  • 変形レイヤーを作成します。

    宣言

    public init(shape: Tensor<Int32>)

    パラメーター

    shape

    テンソルで表されるターゲットの形状。

  • 変形レイヤーを作成します。

    宣言

    public init(_ shape: TensorShape)

    パラメーター

    shape

    ターゲットの形状。

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

    宣言

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

    パラメーター

    input

    レイヤーへの入力。

    戻り値

    出力。