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

Avoid potential desynchronization of cpu and device memory #1132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aciddelgado
Copy link
Contributor

A possible desynchronization of cpu and device memory of new_tokens could result in bugs. This PR guards against any potential bugs, although no issues have been reported thus far to the best of my knowledge.

@ambroser53
Copy link

Could this potentially be a fix for when encountering the following error when using the dml EP?

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

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