class_docstr: The Seq2Edits model. See file docstring.
docstr: Adds additional dimensions and then calls super class implementation.
docstr_tok: ["Adds","additional","dimensions","and","then","calls","super","class","implementation","."]
code: def top(self, body_output, features):
      """Adds additional dimensions and then calls super class implementation."""
      exp_features = features
      for feat in body_output.keys():
          while len(body_output[feat].shape) < 4:
              logging.warning("Expanding body output %s...", feat)
              body_output[feat] = tf.expand_dims(body_output[feat], -2)
          if feat in exp_features:
              while len(exp_features[feat].shape) < 4:
                  exp_features[feat] = tf.expand_dims(
                      exp_features[feat], -1
                  )
                  logging.warning("Expanding feature %s...", feat)
      return super(TransformerSeq2edits, self).top(
          body_output, exp_features
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  from tensor2tensor.layers import common_attention
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import transformer_layers
  from tensor2tensor.models import transformer
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import t2t_model
  import tensorflow.compat.v1
label_desc: Use image node_id 7 for calling the TransformerSeq2edits obj's underlying member method code with example usage: obj.top(body_output, features) and returns: super