Closed dan-zheng closed 4 years ago
Check out this pull request on
You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.
Merging to unblock progress, happy to address comments later!
Was looking good to me anyway, but yes, always feel free to merge directly here. Will port the fix to swiftai.
Was looking good to me anyway, but yes, always feel free to merge directly here. Will port the fix to swiftai.
Thank you!
Work around issues with
@differentiable
+@derivative
attributes with different derivative generic signatures.Automatic differentiation can handle this enum
switch
now, so a custom derivative is no longer necessary.https://bugs.swift.org/browse/TF-1037 tracks this issue. Related discussion: https://github.com/apple/swift/pull/28621#issuecomment-562763390
Unblocks https://github.com/apple/swift/pull/28621. Verified that
swift build
infastai_dev/swift/FastaiNotebook_11_imagenette
succeeds with a toolchain built from https://github.com/apple/swift/pull/28621.