Similar to DefaultVN() in base_layer, introduce a DisableVN() method that returns py_utils.VariationalNoiseParams(1.0, False, False) This function is used if you want a specific layer not to have VN while its parent has it.
Similar to DefaultVN() in base_layer, introduce a DisableVN() method that returns py_utils.VariationalNoiseParams(1.0, False, False)
This function is used if you want a specific layer not to have VN while its parent has it.

PiperOrigin-RevId: 301444035

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo