You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.
Associated type inference behavior was changed in apple/swift#32578:
derived conformances are now attempted before associated type inference.
This broke ParameterlessLayer, which relied on a TangentVector == EmptyTangentVector same-type constraint to set a
default TangentVector type witness for conforming types.
A workaround was added in several PRs (#1034, #1035, swift-models#620, fastai/fastai_dev) and is forward-and backward-compatible, but makes code more verbose. If possible, identify a way to support the old behavior.
This week, the S4TF team encountered several failures building toolchains:
1. Outdated Package.resolved in [swift/FastaiNotebook_11_imagenette](https://github.com/fastai/fastai_dev/blob/master/swift/FastaiNotebook_11_imagenette/Package.resolved).
2. A regression in `ParameterlessLayer` caused by a change in type inference behavior in [swiftlang/swift#32578](swiftlang/swift#32578).
This PR includes two workarounds that unblock toolchain builds:
1. Remove Package.resolved ([swift-apis/1036](tensorflow/swift-apis#1036)). Since this file is regenerated on build, it's often not necessary to include in source control.
2. Add a typealias to instances conforming to `ParameterlessLayer`, which was effective in swift-apis and swift-models (see [tensorflow/swift-apis#1037](tensorflow/swift-apis#1037)).
I'm happy to create an additional PR to remove the other Package.resolved files in this repo and add to .gitignore, if desired.
Associated type inference behavior was changed in apple/swift#32578:
derived conformances are now attempted before associated type inference.
This broke
ParameterlessLayer
, which relied on aTangentVector == EmptyTangentVector
same-type constraint to set adefault
TangentVector
type witness for conforming types.A workaround was added in several PRs (#1034, #1035, swift-models#620, fastai/fastai_dev) and is forward-and backward-compatible, but makes code more verbose. If possible, identify a way to support the old behavior.
This caused build errors in the 2020-06-30 master -> tensorflow merge:
The text was updated successfully, but these errors were encountered: