Skip to content

[AutoDiff] Improve debugging utilities. #32269

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

Conversation

dan-zheng
Copy link
Contributor

  • Show SIL type when printing AdjointValue.
  • Add utilities to print PullbackEmitter adjoint value and buffer mappings.
  • Print generated VJP before printing generated pullback.
    • This is useful because pullback generation may crash after VJP
      generation succeeds.

@dan-zheng dan-zheng requested a review from rxwei June 9, 2020 17:09
@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

- Show SIL type when printing `AdjointValue`.
- Add utilities to print `PullbackEmitter` adjoint value and buffer mappings.
- Print generated VJP before printing generated pullback.
  - This is useful because pullback generation may crash after VJP
    generation succeeds.
@dan-zheng dan-zheng force-pushed the autodiff-debugging branch from 0ff0ebb to 8c548ae Compare June 9, 2020 18:39
@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

@dan-zheng dan-zheng merged commit d890f29 into swiftlang:master Jun 9, 2020
@dan-zheng dan-zheng deleted the autodiff-debugging branch June 9, 2020 21:01
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