Hi,
ctx can be seen as the context in which this Function is running. You will get an empty one during the forward that only contains helper functions. The same ctx will be passed to the backward function so you can use it to store stuff for the backward.
It is similar to the self argument when working with python classes.