class_docstr: Class for testing optimizers.py.
class_docstr_tok: ["Class","for","testing","optimizers.py","."]
docstr: Freeze parameter reg_exp is not allowed to freeze the complete model.
docstr_tok: ["Freeze","parameter","reg_exp","is","not","allowed","to","freeze","the","complete","model","."]
code: def test_freeze_params_reg_exp_matches_all_params_raises_value_error(
      self,
  ):
      """Freeze parameter reg_exp is not allowed to freeze the complete model."""
      optimizer_config = ml_collections.ConfigDict()
      optimizer_config.optimizer = "sgd"
      optimizer_config.freeze_params_reg_exp = ".*"
  
      with self.assertRaises(ValueError):
          optimizers.get_optimizer(
              optimizer_config, self.lr, self.params
          )
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import flax
  import flax.linen
  import jax
  import jax.numpy
  import ml_collections
  import optax
  from scenic.train_lib import optimizers
  from scenic.train_lib import train_utils
  import tensorflow
label_desc: Use image node_id 8 for calling the OptimizersTest obj's underlying member method code with example usage: obj.test_freeze_params_reg_exp_matches_all_params_raises_value_error() without return types