Thanks for your reply. I think about it again, eventually I would like to replace the original linear operation (i.e. y = WX + b) with some additional noise (i.e. y = WX + b + n where n is some customized noise). Is there a simple way to do it for convolutional layers?