Code for dropout. dropout can be added to any layer block. Dropout itself is modelled as a layer block.