Something along those lines:
class Encoder(nn.Module)

    def __init__(self, ....):
        ....
        self.noise = GaussianNoise()

    def forward(self, x):
        ....
        output = self.noise(output)
        return output