class_docstr: A variant of SUM cell, which upgrades the writing attention
class_docstr_tok: ["A","variant","of","SUM","cell",",","which","upgrades","the","writing","attention"]
docstr: Initialization operations for SUMV2 cell.
  this function creates all the parameters for the cell.
docstr_tok: ["Initialization","operations","for","SUMV2","cell",".","this","function","creates","all","the","parameters","for","the","cell","."]
code: def build(self, inputs_shape):
      """Initialization operations for SUMV2 cell.
      this function creates all the parameters for the cell.
      """
      if inputs_shape[-1] is None:
          raise ValueError(
              "Expected inputs.shape[-1] to be known, saw shape: %s"
              % str(inputs_shape)
          )
      _check_supported_dtypes(self.dtype)
      d = inputs_shape[-1]
      h = self._real_units
      s = self._slots
  
      self._basic_build(inputs_shape)
  
      self._writing_W = self.add_variable(
          name="_writing_W",
          shape=[d + h, h],
          initializer=self._kernel_initializer,
      )
      self._writing_b = self.add_variable(
          name="_writing_b",
          shape=[h],
          initializer=(
              self._bias_initializer
              if self._bias_initializer is not None
              else init_ops.constant_initializer(1.0, dtype=self.dtype)
          ),
      )
      self._writing_W02 = self.add_variable(
          name="_writing_W02",
          shape=[h, s],
          initializer=self._kernel_initializer,
      )
  
      self.parameter_set = [
          self._erase_W,
          self._erase_b,
          self._reset_W,
          self._reset_b,
          self._add_W,
          self._add_b,
          self.heads,
          self._writing_W,
          self._writing_W02,
          self._writing_b,
      ]
  
      self.built = True
  
imports: import numpy
  import tensorflow
  from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell
  from tensorflow.python.eager import context
  from tensorflow.python.keras import activations
  from tensorflow.python.keras import initializers
  from tensorflow.python.keras.utils import tf_utils
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.ops import init_ops
  from tensorflow.python.framework import dtypes
  from tensorflow.python.util import nest
label_desc: Use image node_id 1 for calling the SUMV2Cell obj's underlying member method code with example usage: obj.build(inputs_shape) without return types