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

Error with PyTorch backpropagation #668

Open
alterrion-git opened this issue Nov 16, 2024 · 1 comment
Open

Error with PyTorch backpropagation #668

alterrion-git opened this issue Nov 16, 2024 · 1 comment

Comments

@alterrion-git
Copy link

I get this when running loss.backward(): RuntimeError: 0 <= device.index() && device.index() < static_castc10::DeviceIndex(device_ready_queues.size()) INTERNAL ASSERT FAILED at "C:\actions-runner\work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\autograd\engine.cpp":1451, please report a bug to PyTorch.

Is DirectML unusable for PyTorch on windows with AMD GPU, or could there be some error somewhere? I just create a super simple net that works fine on CPU.

@RayKMAllen
Copy link

I have the same error, also on an AMD Radeon GPU with Windows 11. Model and data successfully transfer to dml, forward pass is fine, but loss.backward() produces this error.

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

2 participants