Skip to content

[AutoDiff] NFC: garden differentiation transform. #32770

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
Jul 9, 2020

Conversation

dan-zheng
Copy link
Contributor

@dan-zheng dan-zheng commented Jul 8, 2020

Rename "emitters" to "cloners", for consistency with the rest of the codebase:

  • JVPEmitter -> JVPCloner
  • VJPEmitter -> VJPCloner
  • PullbackEmitter -> PullbackCloner

Improve PullbackCloner documentation.

  • Document previously undocumented methods.
  • Update outdated documentation.
    • For adjoint value accumulation helpers: rename "buffer access" occurrences to
      "address". Pullback generation no longer uses buffer accesses (begin_apply).

Prep for SR-13182: using the pointer-to-impl pattern to minimize derivative function cloner
header files. It's nice to first finalize the header file locations.

@dan-zheng dan-zheng requested review from rxwei and marcrasi July 8, 2020 23:39
Rename "emitters" to "cloners", for consistency:
- `JVPEmitter` -> `JVPCloner`
- `VJPEmitter` -> `VJPCloner`
- `PullbackEmitter` -> `PullbackCloner`

Improve `PullbackCloner` documentation.
- Document previously undocumented methods.
- Update outdated documentation.
  - For adjoint value accumulation helpers: rename "buffer access" occurrences to
    "address". Pullback generation no logner uses buffer accesses (`begin_apply`).
@dan-zheng dan-zheng force-pushed the autodiff-gardening branch from efb7170 to 142f205 Compare July 8, 2020 23:42
@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

@dan-zheng dan-zheng merged commit ec5da74 into swiftlang:master Jul 9, 2020
@dan-zheng dan-zheng deleted the autodiff-gardening branch July 9, 2020 02:26
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.

2 participants