diff --git a/Sources/DeepLearning/Layer.swift b/Sources/DeepLearning/Layer.swift index e5409e1fc..d4b02c37d 100644 --- a/Sources/DeepLearning/Layer.swift +++ b/Sources/DeepLearning/Layer.swift @@ -613,6 +613,8 @@ public struct UpSampling2D: Layer { @_fixed_layout public struct Flatten: Layer { + public init() {} + @differentiable public func applied(to input: Tensor, in _: Context) -> Tensor { let batchSize = input.shape[0]