Difference between apply an call for an autograd function

Hi,

This difference is that instantiating + calling the Function works with “old style” functions (which are going to be deprecated in the future).
Using .apply is for the “new style” functions. You can differentiate the two easily: new style functions are defined with only @staticmethod, while old style ones have an __init__.

10 Likes