class_docstr: Create a callback with some lambdas.
class_docstr_tok: ["Create","a","callback","with","some","lambdas","."]
docstr: Each lambda takes ``self`` as the only argument.
code: def __init__(
      self,
      setup_graph=None,
      before_train=None,
      trigger=None,
      after_train=None,
  ):
      """
      Each lambda takes ``self`` as the only argument.
      """
  
      self._cb_setup_graph = setup_graph
      self._cb_before_train = before_train
      self._cb_trigger = trigger
      self._cb_after_train = after_train
  
imports: from abc import ABCMeta
  import six
  from ..compat import tfv1
  from ..tfutils.common import get_op_or_tensor_by_name
label_desc: Use image node_id 1 to create a new CallbackFactory object from inherited base classes: Callback with example: obj = CallbackFactory(setup_graph, before_train, trigger, after_train)