When I implement custom autograd function.
In the forward of class  xxxFunction(torch.autograd.Function),
I get ctx.matches, then I want to get the ctx.matches outside this function.
I tried
@staticmethod
def get_matches(ctx):
    return ctx.matches

Then in the class xxx(torch.nn.Module), I run xxxFunction.get_matches().
get_matches() takes exactly 1 argument (0 given).
Thank you  in advance!