How to call function after forward function of a PyTorch model

I am running a code where they have another function after the forward function (load_from) in the PyTorch model, as below. How to call this function or is it not automatically called? THANK yOU

You can call the method on an instance of the class the method is in.

1 Like

thanks for the suggestion; I did something like this, and it worked.