Skip to content

Investigate slow-down in reverse-mode with nested loops in Bezier curves PR #4020

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

Closed
saipraveenb25 opened this issue Apr 24, 2024 · 1 comment
Assignees

Comments

@saipraveenb25
Copy link
Collaborator

There appears to be some slow-down when using reverse-mode with multiple nested loops. See bezier_curvefit.py in slang-torch PR#1.

Filing this in the main repository because its most likely an issue with recompute/checkpoint policy creating unnecessary intemediates.

@saipraveenb25
Copy link
Collaborator Author

No compiler changes needed. Fixed by updating user code to take advantage of recomputation.
See for more details: shader-slang/slang-torch#6

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

No branches or pull requests

1 participant