Skip to content

AOT Autograd - Contiguous tensors #537

@anijain2305

Description

@anijain2305

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions