I created a simple autograd function, let’s call it F (based on torch.autograd.Function).
What’s the difference between calling
a = F.apply(args)

and instantiating, then calling, like this :
f = F()
a = f(args)

The two versions seem to be used in pytorch code, and in examples