Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
add public initializer for Flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Rasi committed Feb 28, 2019
1 parent 34573a2 commit 3efbf45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/DeepLearning/Layer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,8 @@ public struct UpSampling2D<Scalar: TensorFlowFloatingPoint>: Layer {

@_fixed_layout
public struct Flatten<Scalar: TensorFlowFloatingPoint>: Layer {
public init() {}

@differentiable
public func applied(to input: Tensor<Scalar>, in _: Context) -> Tensor<Scalar> {
let batchSize = input.shape[0]
Expand Down

0 comments on commit 3efbf45

Please sign in to comment.