class_docstr: Helper class to make it easier to manage caching in `Bijector`.
class_docstr_tok: ["Helper","class","to","make","it","easier","to","manage","caching","in","`","Bijector","`","."]
docstr: Returns new _Mapping with args merged with self.
  
  Args:
    x: `Tensor`. Forward.
    y: `Tensor`. Inverse.
    ildj_map: `Dictionary`. This is a mapping from event_ndims to a `Tensor`
      representing the inverse log det jacobian.
    kwargs: Python dictionary. Extra args supplied to
      forward/inverse/etc functions.
    mapping: Instance of _Mapping to merge. Can only be specified if no other
      arg is specified.
  
  Returns:
    mapping: New instance of `_Mapping` which has inputs merged with self.
  
  Raises:
    ValueError: if mapping and any other arg is not `None`.
code: def merge(
      self, x=None, y=None, ildj_map=None, kwargs=None, mapping=None
  ):
      """Returns new _Mapping with args merged with self.
  
      Args:
        x: `Tensor`. Forward.
        y: `Tensor`. Inverse.
        ildj_map: `Dictionary`. This is a mapping from event_ndims to a `Tensor`
          representing the inverse log det jacobian.
        kwargs: Python dictionary. Extra args supplied to
          forward/inverse/etc functions.
        mapping: Instance of _Mapping to merge. Can only be specified if no other
          arg is specified.
  
      Returns:
        mapping: New instance of `_Mapping` which has inputs merged with self.
  
      Raises:
        ValueError: if mapping and any other arg is not `None`.
      """
      if mapping is None:
          mapping = _Mapping(x=x, y=y, ildj_map=ildj_map, kwargs=kwargs)
      elif any(arg is not None for arg in [x, y, ildj_map, kwargs]):
          raise ValueError(
              "Cannot simultaneously specify mapping and individual "
              "arguments."
          )
  
      return _Mapping(
          x=self._merge(self.x, mapping.x),
          y=self._merge(self.y, mapping.y),
          ildj_map=self._merge_dicts(self.ildj_map, mapping.ildj_map),
          kwargs=self._merge(self.kwargs, mapping.kwargs),
      )
  
imports: import abc
  import collections
  import contextlib
  import re
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.distributions import util
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 4 for calling the _Mapping obj's underlying member method code with example usage: obj.merge(x, y, ildj_map, kwargs, mapping) and returns: _Mapping