Skip to content

[AutoDiff] Rename 'in:' to 'of:' in differential operators. #36121

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 2 commits into from
Feb 24, 2021

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Feb 24, 2021

Rename the argument label in: in gradient(at:in:), pullback(at:in:), etc to of:, as suggested in the pitch thread.

Rename `move(along:)` to `move(by:)` based on the proposal feedback. The main argument for the change is that tangent vectors specify both a direction and a magnitude, whereas `along:` does not indicate that `self` is being moved by the specified magnitude.
@rxwei
Copy link
Contributor Author

rxwei commented Feb 24, 2021

Please review commit 549d85e as this is on top of anther PR.

@rxwei
Copy link
Contributor Author

rxwei commented Feb 24, 2021

@swift-ci please test and merge

Rename the argument label `in:` in `gradient(at:in:)`, `pullback(at:in:)`, etc to `of:`, as suggested in the [pitch thread](https://forums.swift.org/t/differentiable-programming-for-gradient-based-machine-learning/42147).
@rxwei
Copy link
Contributor Author

rxwei commented Feb 24, 2021

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 6097742 into swiftlang:main Feb 24, 2021
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