class_docstr: Basic attention cell wrapper.
  
  Implementation based on https://arxiv.org/abs/1601.06733.
class_docstr_tok: ["Basic","attention","cell","wrapper",".","Implementation","based","on","https",":","\/\/arxiv.org\/abs\/1601.06733","."]
code: def state_size(self):
      size = (
          self._cell.state_size,
          self._attn_size,
          self._attn_size * self._attn_length,
      )
      if self._state_is_tuple:
          return size
      else:
          return sum(list(size))
  
imports: import tensorflow.compat.v1
  import tf_slim
  from tensorflow.python.ops import gen_nn_ops
label_desc: Use image node_id 2 for calling the AttentionCellWrapper obj's underlying member method code with example usage: obj.state_size() and returns: size, sum