diff --git a/Sources/TensorFlow/Layers/Sequential.swift b/Sources/TensorFlow/Layers/Sequential.swift index cf71989bd..30c4e3459 100644 --- a/Sources/TensorFlow/Layers/Sequential.swift +++ b/Sources/TensorFlow/Layers/Sequential.swift @@ -74,6 +74,13 @@ extension Sequential: Layer where Layer1: Layer { } } +extension Sequential.TangentVector: VectorProtocol { + /// - Note: this typealias declaration is necessary for building with old non-stock toolchains + /// where `VectorProtocol.VectorSpaceScalar` is an associated type and not a typealias + /// declaration. + typealias VectorSpaceScalar = Float +} + /// A layer that sequentially composes 3 layers. public typealias Sequential3 = Sequential> where