Skip to content

[Docs] [AutoDiff] Fix typos in differentiable programming manifesto. #28739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

dan-zheng
Copy link
Contributor

  • @differential(linear) -> @differentiable(linear)
  • Fix derivative registration for ElementaryFunctions requirements.

- `@differential(linear)` -> `@differentiable(linear)`
- Fix derivative registration for `ElementaryFunctions` requirements.
@@ -1696,48 +1696,49 @@ public protocol ElementaryFunctions {
...
}

public extension ElementaryFunctions where Self: Differentiable, Self == Self.TangentVector {
public extension ElementaryFunctions
where Self: Differentiable & FloatingPoint, Self == Self.TangentVector {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: the FloatingPoint requirement here is unfortunate - it's necessary for operations like * and /.
No general protocol defines these operations yet.

@dan-zheng dan-zheng requested review from rxwei and marcrasi December 12, 2019 08:11
@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test and merge

@swift-ci swift-ci merged commit 1316f57 into swiftlang:master Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants