-
Notifications
You must be signed in to change notification settings - Fork 730
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
After a linear layer forward call, executing a AutodiffBackend::memory_cleanup on cuda panics with "The size should match".
To Reproduce
Please see this gist.
Expected behavior
All pass.
Screenshots
(Not applicable)
Desktop (please complete the following information):
- OS: Linux 6.x, cuda 12.x.
Smartphone (please complete the following information):
(Not applicable)
Additional context
- Three blocks, XYZ, are executed.
- X: A tensor with a
require_gradtest; - Y: A
Paramtensor test; - Z: A
Linearmodel test. I didn't explore much, but I didn't find a simpler test that fails for Z.
- X: A tensor with a
- They all pass for ndarray, but block Z fails for cuda.
- Each block probably doesn't interfere with one another. On cuda, when executing XYYZ, or XZY, it always only fails for block Z.
- The gist contains the error message.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working