ptrblck:

In the latter case you could manipulate the activations in the forward method of your model and pass the changed one to the next layer.


" In the latter case you could manipulate the activations in the forward method of your model and pass the changed one to the next layer."
thanks, how I can do this with code?