If you want to access an operation into the method of an object, as far as I know, it’s impossible on the whole python language. You can just access the parameters and methods of the object. But you can still re-define the whole forward method by inheritance.