class_docstr: Build optimizer handles
  Args:
      regularizer (object): an `Regularizer` instance
      optimizer (object): an `Optimizer` instance
class_docstr_tok: ["Build","optimizer","handles","Args",":","regularizer","(","object",")",":","an","`","Regularizer","`","instance","optimizer","(","object",")",":","an","`","Optimizer","`","instance"]
code: def __init__(
      self,
      clip_grad_by_norm=None,
      clip_grad_by_value=None,
      regularizer={"type": "L2", "factor": 0.0001},
      optimizer={"type": "Momentum", "momentum": 0.9},
  ):
      self.clip_grad_by_norm = clip_grad_by_norm
      self.clip_grad_by_value = clip_grad_by_value
      self.regularizer = regularizer
      self.optimizer = optimizer
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import math
  import paddle
  import paddle.nn
  import paddle.optimizer
  import paddle.regularizer
  from ppdet.core.workspace import register, serializable
  import copy
  from .adamw import AdamWDL, build_adamwdl
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 1 to create a new OptimizerBuilder object  with example: obj = OptimizerBuilder(clip_grad_by_norm, clip_grad_by_value, regularizer, optimizer)