This repository was archived by the owner on Apr 23, 2025. It is now read-only.
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
Rewrite long nested Sequential
types using Sequential{N}
typealiases #492
Open
Description
Sequential{N}
typealiases were added in tensorflow/swift-apis#934:
import TensorFlow
// Before:
typealias Model = Sequential<Dense<Float>, Sequential<Dense<Float>, Dense<Float>>>
// After:
typealias Model = Sequential3<Dense<Float>, Dense<Float>, Dense<Float>>
The tuple-like typealiases are easier to use. Long nested Sequential
types should be rewritten to use them:
swift-models/pix2pix/Discriminator.swift
Line 18 in b0cc1c4