Solved by JuanFMontesinos in post #2 
              
              
                You can rewrite the class or to create a new nn.Module which performs both. 
The 2nd option would be better in order to be aligned with future upgrades