-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
AOT Autograd does not handle non-contiguous tensors correctly right now.
One way to handle this is to trace backwards forcing contiguous tensors for the outputs and then call contiguous on backwards input grad tensors. This is done in #536. However, this can result in high and unnecessary overhead.
Other option is to record the strides of out in the forward pass and then accordingly restride the input grads in the backward. We have to investigate if that can be done for all cases.
Metadata
Metadata
Assignees
Labels
No labels