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
I tried this out on both Swift 5.5 and Swift 5.5.2 release, using a Colab VM (see Swift-Colab (https://github.com/philipturner/swift-colab) for how to replicate). I am patching the S4TF tutorial on "Sharp Edges in Differentiability", but finding the synthesized derivative powVJP always returns an incorrect result.
I am using the Differentiation (https://github.com/philipturner/differentiation) package, but files from swift/main haven't changed since Differentiation was last updated. On Xcode, the derivative produces the correct result (4.0, 2.772588722239781), but on Colab it produces (4.0, 2.825309782578104e-303) which is incorrect. This happens even when both are tested on Swift 5.5.0 (modify the import command for Colab to download "5.5" instead of "5.5.2", not "5.5.0").
I am not able to use Swift development snapshots because they break support for Swift on Colab. Furthermore, this requires importing "Differentiation" instead of "_Differentiation".
Additional Detail from JIRA
md5: 8d335cddddc6ffa03f1af4f31fb6b979
Issue Description:
I tried this out on both Swift 5.5 and Swift 5.5.2 release, using a Colab VM (see Swift-Colab (https://github.com/philipturner/swift-colab) for how to replicate). I am patching the S4TF tutorial on "Sharp Edges in Differentiability", but finding the synthesized derivative
powVJP
always returns an incorrect result.I am using the Differentiation (https://github.com/philipturner/differentiation) package, but files from swift/main haven't changed since Differentiation was last updated. On Xcode, the derivative produces the correct result (4.0, 2.772588722239781), but on Colab it produces (4.0, 2.825309782578104e-303) which is incorrect. This happens even when both are tested on Swift 5.5.0 (modify the import command for Colab to download "5.5" instead of "5.5.2", not "5.5.0").
I am not able to use Swift development snapshots because they break support for Swift on Colab. Furthermore, this requires importing "Differentiation" instead of "_Differentiation".
This is related to the following, which indirectly reference this code:
https://bugs.swift.org/browse/SR-14240
#38850
The text was updated successfully, but these errors were encountered: