Skip to content

About missing "ctx" argument in autograd function "ApplyRotaryEmbeddingInplace" #112

@sairights

Description

@sairights

Thanks for opensourcing your great work HDiT!
In

def forward(x, theta, conj):
, it seems that the ctx is missing. But strangely, the function could run smoothly without the ctx argument on PyTorch 2.1. As I switch to PyTorch-1.12, the code is not runnable. I am wondering about the reason...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions