Skip to content
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

Add conditional on torch version for scaled_dot_product_attention #6517

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

loadams
Copy link
Contributor

@loadams loadams commented Sep 10, 2024

Changes from #4724 broke support for torch<2.0 in the flops profiler as the scaled_dot_product_attention wasn't added until a beta version in torch 2.0

Resolved: #5534

Todo:

  • Test this
  • Issue resolution with users.

@loadams loadams added this pull request to the merge queue Sep 11, 2024
Merged via the queue into master with commit 170b46e Sep 12, 2024
11 checks passed
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.

[BUG]AttributeError: module 'torch.nn.functional' has no attribute 'scaled_dot_product_attention'
2 participants